From e2444ec823df544690214ca60a87ddd0b9f94adb Mon Sep 17 00:00:00 2001 From: Lains <4886639+lainsce@users.noreply.github.com> Date: Sun, 22 Jan 2023 01:42:51 -0300 Subject: [PATCH] improve contrast --- lib/Models/Application.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Models/Application.vala b/lib/Models/Application.vala index 141a7981..f7a1d24b 100644 --- a/lib/Models/Application.vala +++ b/lib/Models/Application.vala @@ -113,7 +113,7 @@ public class He.Application : Gtk.Application { } var lch_color = He.Color.rgb_to_lch (rgb_color); - lch_color.l = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 0 : 109.0; + lch_color.l = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 0 : 100.0; if (Desktop.DarkModeStrength.MEDIUM == desktop.dark_mode_strength) { derived_fg = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? He.Color.WHITE : He.Color.BLACK; derived_bg = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? He.Color.BLACK : He.Color.WHITE; @@ -136,8 +136,8 @@ public class He.Application : Gtk.Application { derived_card_bg = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? He.Color.CARD_BLACK : He.Color.CARD_WHITE; } - var fg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 12.0 : 7.0; - var bg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 10.0 : 9.0; + var fg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 15.8 : 7.72; + var bg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 3.0 : 1.1; He.Color.RGBColor derived_accent_fg; var derived_accent_as_fg = He.Color.derive_contasting_color(lch_color, fg_contrast, null);