Skip to content

Commit

Permalink
I think I got it
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Jan 22, 2023
1 parent 74365ab commit 4c6e101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Models/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? 13.6 : 2.1;
var bg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 9.2 : 15.2;
var fg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 13.6 : 15.2;
var bg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 2.1 : 2.2;

He.Color.RGBColor derived_accent_fg;
var derived_accent_as_fg = He.Color.derive_contasting_color(lch_color, fg_contrast, null);
Expand Down

0 comments on commit 4c6e101

Please sign in to comment.