Skip to content

Commit

Permalink
Darken pure-white background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Apr 7, 2022
1 parent 4a64133 commit 62d621c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions functions/_tide_detect_os.fish
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,21 @@ function _tide_detect_os_linux_cases -a file key
set -l key_index (contains --index $key $split_file) || return
set -l value (string trim --chars='"' $split_file[(math $key_index + 1)] | string lower)

# Anything which would have pure white background has been changed to D4D4D4
# It was just too bright otherwise
switch $value
case alpine
printf %s\n οŒ€ FFFFFF 0D597F # from alpine logo
case arch
printf %s\n οŒƒ 1793D1 4D4D4D # from arch wiki header
case centos
printf %s\n οŒ„ 000000 FFFFFF # https://wiki.centos.org/ArtWork/Brand/Logo, monochromatic
printf %s\n οŒ„ 000000 D4D4D4 # https://wiki.centos.org/ArtWork/Brand/Logo, monochromatic
case debian
printf %s\n οŒ† C70036 FFFFFF # from debian logo https://www.debian.org/logos/openlogo-nd-100.png
printf %s\n οŒ† C70036 D4D4D4 # from debian logo https://www.debian.org/logos/openlogo-nd-100.png
case devuan
printf %s\n οŒ‡ $defaultColor # logo is monochromatic
case elementary
printf %s\n οŒ‰ 000000 FFFFFF # https://elementary.io/brand, encouraged to be monochromatic
printf %s\n οŒ‰ 000000 D4D4D4 # https://elementary.io/brand, encouraged to be monochromatic
case fedora
printf %s\n  FFFFFF 294172 # from logo https://fedoraproject.org/w/uploads/2/2d/Logo_fedoralogo.png
case gentoo
Expand All @@ -56,7 +58,7 @@ function _tide_detect_os_linux_cases -a file key
case slackware
printf %s\n οŒ™ $defaultColor # Doesn't really have a logo, and the colors are too close to PWD blue anyway
case ubuntu
printf %s\n οŒ› E95420 FFFFFF # https://design.ubuntu.com/brand/
printf %s\n οŒ› E95420 D4D4D4 # https://design.ubuntu.com/brand/
case '*'
return 1
end
Expand Down

0 comments on commit 62d621c

Please sign in to comment.