summaryrefslogtreecommitdiff
path: root/themes/agnoster.zsh-theme
diff options
context:
space:
mode:
authortuzi3040 <28290621+tuzi3040@users.noreply.github.com>2025-02-19 19:37:18 +0800
committerGitHub <noreply@github.com>2025-02-19 12:37:18 +0100
commit6e7ac0544e71c7b777746cb50f70de68c6495b86 (patch)
tree99af8ce9c8a1db6d849c92d1963ed466aa60b87c /themes/agnoster.zsh-theme
parent92da3108b52be506dc1334e8f0dc67c5d1c13d57 (diff)
downloadzsh-6e7ac0544e71c7b777746cb50f70de68c6495b86.tar.gz
zsh-6e7ac0544e71c7b777746cb50f70de68c6495b86.tar.bz2
zsh-6e7ac0544e71c7b777746cb50f70de68c6495b86.zip
fix(agnoster): print white text over black for light theme only (#12983)
Diffstat (limited to 'themes/agnoster.zsh-theme')
-rw-r--r--themes/agnoster.zsh-theme14
1 files changed, 10 insertions, 4 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index b48bac56a..adeffe8c2 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -35,8 +35,14 @@
CURRENT_BG='NONE'
case ${SOLARIZED_THEME:-dark} in
- light) CURRENT_FG='white';;
- *) CURRENT_FG='black';;
+ light)
+ CURRENT_FG='white'
+ CURRENT_DEFAULT_FG='white'
+ ;;
+ *)
+ CURRENT_FG='black'
+ CURRENT_DEFAULT_FG='default'
+ ;;
esac
### Theme Configuration Initialization
@@ -48,7 +54,7 @@ esac
: ${AGNOSTER_DIR_BG:=blue}
# user@host
-: ${AGNOSTER_CONTEXT_FG:=white}
+: ${AGNOSTER_CONTEXT_FG:=${CURRENT_DEFAULT_FG}}
: ${AGNOSTER_CONTEXT_BG:=black}
# Git related
@@ -85,7 +91,7 @@ esac
: ${AGNOSTER_STATUS_RETVAL_FG:=red}
: ${AGNOSTER_STATUS_ROOT_FG:=yellow}
: ${AGNOSTER_STATUS_JOB_FG:=cyan}
-: ${AGNOSTER_STATUS_FG:=white}
+: ${AGNOSTER_STATUS_FG:=${CURRENT_DEFAULT_FG}}
: ${AGNOSTER_STATUS_BG:=black}
## Non-Color settings - set to 'true' to enable