Also apply light/dark via new chromium flags
This commit is contained in:
parent
1f4723ae33
commit
dd493b0cdf
@ -40,11 +40,19 @@ else
|
||||
fi
|
||||
|
||||
# Change Chromium colors
|
||||
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]] && command -v chromium &>/dev/null; then
|
||||
if command -v chromium &>/dev/null; then
|
||||
if [[ -f ~/.config/omarchy/current/theme/light.mode ]]; then
|
||||
chromium --no-startup-window --set-color-scheme="light"
|
||||
else
|
||||
chromium --no-startup-window --set-color-scheme="dark"
|
||||
fi
|
||||
|
||||
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]]; then
|
||||
chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)"
|
||||
else
|
||||
else
|
||||
# Use a default, neutral grey if theme doesn't have a color
|
||||
chromium --no-startup-window --set-theme-color="28,32,39"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Trigger alacritty config reload
|
||||
|
Loading…
x
Reference in New Issue
Block a user