From 5f45d85e04b58bc3b38e5c41b8baabf75b0814c0 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Sat, 16 Dec 2017 21:28:42 +0100 Subject: [PATCH] fix auto color --- src/Windows/WebApp.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Windows/WebApp.vala b/src/Windows/WebApp.vala index 2b8f8b9..f6ef833 100644 --- a/src/Windows/WebApp.vala +++ b/src/Windows/WebApp.vala @@ -114,7 +114,7 @@ namespace Webpin.Windows { browser.found_website_color.connect ((color) => { int gray_val = (int)(desktop_file.color.red * 255); - if (desktop_file.color == null || ((gray_val == 222 || gray_val == 56610) && desktop_file.color.red == desktop_file.color.green && desktop_file.color.red == desktop_file.color.blue)) { + if (desktop_file.color == null || ((gray_val == 222 || gray_val == 255) && desktop_file.color.red == desktop_file.color.green && desktop_file.color.red == desktop_file.color.blue)) { set_color (color); desktop_file.color = color; }