Skip to content

Commit

Permalink
Fix Chrome application header to contrast with the main accent color
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 4, 2023
1 parent ebc4f4c commit 1383297
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions authentic-init.pl
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ sub settings_filter

sub get_theme_color
{
my %theme_colors = ('blue' => '#004090',
'brown' => '#5d4839',
'gold' => '#7e6143',
'green' => '#247648',
'grey' => '#464b49',
'orange' => '#8b5f37',
'purple' => '#4f3b56',
'red' => '#8e2b2b',
'white' => '#ffffff');
# Chrome application header color should be darker than the theme color
my %theme_colors = ('blue' => '#003374', # '#004090',
'brown' => '#423328', # '#5d4839',
'gold' => '#624b33', # '#7e6143',
'green' => '#1a5936', # '#247648',
'grey' => '#313533', # '#464b49',
'orange' => '#724e2d', # '#8b5f37',
'purple' => '#3a2b3f', # '#4f3b56',
'red' => '#752323', # '#8e2b2b',
'white' => '#eeeeee');# '#ffffff'

my $color = $theme_config{'settings_navigation_color'};
return $theme_colors{$color};
Expand Down

0 comments on commit 1383297

Please sign in to comment.