Skip to content

Commit

Permalink
Fix #460: wrong Android icon (#481)
Browse files Browse the repository at this point in the history
* fix #460: wrong android icon

* Update test

* Remove extra line

---------

Co-authored-by: Ilan Cosman <[email protected]>
  • Loading branch information
huangyxi and IlanCosman authored Jan 16, 2024
1 parent 812fb9b commit fbca958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions functions/_tide_detect_os.fish
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ function _tide_detect_os
printf %s\n  FFFFFF 00CCFF # https://answers.microsoft.com/en-us/windows/forum/all/what-is-the-official-windows-8-blue-rgb-or-hex/fd57144b-f69b-42d8-8c21-6ca911646e44
case linux
if test (uname -o) = Android
echo# This character is evil and messes up code display, so it's put on its own line
# https://developer.android.com/distribute/marketing-tools/brand-guidelines
printf %s\n 3DDC84 3C3F41 # fg is from above link, bg is from Android Studio default dark theme
printf %s\n 3DDC84 3C3F41 # fg is from above link, bg is from Android Studio default dark theme
else
_tide_detect_os_linux_cases /etc/os-release ID ||
_tide_detect_os_linux_cases /etc/os-release ID_LIKE ||
Expand Down
2 changes: 1 addition & 1 deletion tests/detect_os/_tide_detect_os.test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _tide_detect_os
mock uname \* "echo Linux"
mock uname -o "echo Android"
_tide_detect_os
# CHECK:
# CHECK:
# CHECK: 3DDC84
# CHECK: 3C3F41

Expand Down

0 comments on commit fbca958

Please sign in to comment.