zthxxx / jovial

Jovial - A lovely zsh theme with responsive-design, it's pretty fast, keep simple but useful

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request]Better support for light background?

mrunhap opened this issue · comments

[Feature Request]Better support for light background?

I like this theme, but can it be adaptive to Light and Dark Appearances? Since it is not readable on white background.

2023-04-01 at 09 09 42

I get same problem with light background with this theme too. CC to @zthxxx
image

commented

Sorry, but I do not have any plans to support for light background.

Solved:
I just added this in my .zshrc file and it works 👌

`
interfaceStyle=$(defaults read -g AppleInterfaceStyle 2>/dev/null)

if [[ "$interfaceStyle" != "Dark" ]]; then
JOVIAL_PALETTE[host]='%F{34}'
JOVIAL_PALETTE[user]='%F{234}'
JOVIAL_PALETTE[path]='%F{202}'
JOVIAL_PALETTE[git]='%F{27}'
JOVIAL_PALETTE[time]='%F{244}'
JOVIAL_PALETTE[elapsed]='%F{172}'
JOVIAL_PALETTE[normal]='%F{244}'
JOVIAL_PALETTE[typing]='%F{244}'
JOVIAL_SYMBOL[arrow]='-▶'
JOVIAL_SYMBOL[arrow.git-clean]='-▶'
JOVIAL_SYMBOL[arrow.git-dirty]='-▶'
JOVIAL_PALETTE[conj.]='%F{240}'

else
fi`