fix auto color

This commit is contained in:
Artem Anufrij 2017-12-16 21:07:40 +01:00
parent 36c3990073
commit 152fc5807e

View file

@ -114,7 +114,7 @@ namespace Webpin.Windows {
browser.found_website_color.connect ((color) => { browser.found_website_color.connect ((color) => {
int gray_val = (int)(desktop_file.color.red * 255); int gray_val = (int)(desktop_file.color.red * 255);
if (desktop_file.color == null || (gray_val == 222 && 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 == 56610) && desktop_file.color.red == desktop_file.color.green && desktop_file.color.red == desktop_file.color.blue)) {
set_color (color); set_color (color);
desktop_file.color = color; desktop_file.color = color;
} }