Skip to content

Commit

Permalink
fix setting custom colors
Browse files Browse the repository at this point in the history
  • Loading branch information
artemanufrij committed Nov 12, 2017
1 parent 32d31f5 commit 262a807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Objects/DesktopFile.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 262a807

Please sign in to comment.