Skip to content

Commit

Permalink
let's make borders less pronounced
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Feb 4, 2023
1 parent f14544a commit 5d53f22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Models/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ public class He.Application : Gtk.Application {
He.Color.hct_to_lch({hct_color.h, Math.fmin(hct_color.c / 6.0, 8.0), 50.0});
var derived_border_rgb = He.Color.lab_to_rgb (He.Color.lch_to_lab(derived_border));
var border_hex = Color.hexcode (derived_border_rgb.r, derived_border_rgb.g, derived_border_rgb.b);

var derived_border_variant = Desktop.ColorScheme.DARK == desktop.prefers_color_scheme ?
He.Color.hct_to_lch({hct_color.h, Math.fmin(hct_color.c / 6.0, 8.0), 30.0}) :
He.Color.hct_to_lch({hct_color.h, Math.fmin(hct_color.c / 6.0, 8.0), 80.0});
var derived_border_variant_rgb = He.Color.lab_to_rgb (He.Color.lch_to_lab(derived_border_variant));
var border_variant_hex = Color.hexcode (derived_border_variant_rgb.r, derived_border_variant_rgb.g, derived_border_variant_rgb.b);

this.foreground = derived_on_primary_rgb;
this.accent_color = derived_primary_rgb;
Expand Down Expand Up @@ -318,7 +324,7 @@ public class He.Application : Gtk.Application {
@define-color success_container_bg_color $tertiary_container_hex;
@define-color success_container_fg_color $on_tertiary_container_hex;
@define-color borders $border_hex;
@define-color borders $border_variant_hex;
";
} else {
css = @"
Expand Down

0 comments on commit 5d53f22

Please sign in to comment.