Skip to content

Commit

Permalink
um
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Jan 22, 2023
1 parent e753db1 commit c15e76e
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 ? 7.0 : 15.0;
var bg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 3.0 : 4.5;
var fg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 13.6 : 15.2;
var bg_contrast = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ? 9.2 : 2.1;

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 c15e76e

Please sign in to comment.