Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
889592f1
Commit
889592f1
authored
Nov 19, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #446: If the ascii art uses gray, style the text white
parent
96592d0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
neofetch
neofetch
+9
-2
No files found.
neofetch
View file @
889592f1
...
...
@@ -2484,7 +2484,7 @@ get_distro_colors() {
;;
"BunsenLabs"
*)
set_colors
8
7
set_colors
fg
7
;;
*
"OS X"
* | *
"iOS"
* |
"Mac"
| *
"macOS"
*)
...
...
@@ -2568,14 +2568,17 @@ get_distro_colors() {
ascii_distro=
"linux"
set_colors fg 8 3
;;
"BSD"
)
ascii_distro=
"bsd"
set_colors 1 7 4 3 6
;;
"GNU"
)
ascii_distro=
"gnu"
set_colors fg
;;
"Solaris"
)
ascii_distro=
"solaris"
set_colors 3
...
...
@@ -2608,7 +2611,11 @@ set_colors() {
colon_color="$reset"
info_color="$reset"
# If the second color is white use the first for the subtitle
# If the ascii art uses 8 as a color, make the text the fg.
(("$1" == 8)) && title_color="$reset"
(("$2" == 8)) && subtitle_color="$reset"
# If the second color is white use the first for the subtitle.
(("$2" == 7)) && subtitle_color="$(color "$1")"
(("$1" == 7)) && title_color="$reset"
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment