fix setting custom colors

This commit is contained in:
Artem Anufrij 2017-11-12 12:32:36 +01:00
parent 32d31f52d8
commit 262a807f3c

View file

@ -80,7 +80,8 @@ namespace Webpin {
return return_value;
} set {
if (value != null) {
edit_propertie ("WebpinPrimaryColor", value.to_string ());
var color = "#%02x%02x%02x".printf ((int)(value.red * 255), (int)(value.green * 255), (int)(value.blue * 255));
edit_propertie ("WebpinPrimaryColor", color);
}
}
}