From 262a807f3ce3fd3e9fc6c813cc0f94f3047ac345 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Sun, 12 Nov 2017 12:32:36 +0100 Subject: [PATCH] fix setting custom colors --- src/Objects/DesktopFile.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Objects/DesktopFile.vala b/src/Objects/DesktopFile.vala index 0f2e119..99ae289 100644 --- a/src/Objects/DesktopFile.vala +++ b/src/Objects/DesktopFile.vala @@ -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); } } }