Open I-Iawk opened 1 year ago
Run ./install.sh -l
I see... well that works! However, a new bug occurs... it appears this break's the ability to switch between light and dark mode via Settings -> Appearance.
In order to go all dark mode, I had to remove the previous files and run this:
./install.sh -l -c dark
Hope this helps @vinceliuice ?
As far as I know, Lavanda doesn't have a dark or light subtheme - each coloration is actually a completely different theme. The workaround that I use is by running a shell script when changing colorations via the Night Theme Switcher extension.
Here's the source for my scripts:
sunrise.sh
THEME="Lavanda-Light-Compact"
THEME_DIR="${HOME}/.themes/${THEME}"
mkdir -p "${HOME}/.config/gtk-4.0"
ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets"
ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css"
ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"
sunset.sh
THEME="Lavanda-Dark-Compact"
THEME_DIR="${HOME}/.themes/${THEME}"
mkdir -p "${HOME}/.config/gtk-4.0"
ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets"
ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css"
ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"
(all these scripts do is soft-link the theme into the gtk-4.0
theme directory)
As far as I know, Lavanda doesn't have a dark or light subtheme - each coloration is actually a completely different theme. The workaround that I use is by running a shell script when changing colorations via the Night Theme Switcher extension.
Here's the source for my scripts:
sunrise.sh
THEME="Lavanda-Light-Compact" THEME_DIR="${HOME}/.themes/${THEME}" mkdir -p "${HOME}/.config/gtk-4.0" ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets" ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css" ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"
sunset.sh
THEME="Lavanda-Dark-Compact" THEME_DIR="${HOME}/.themes/${THEME}" mkdir -p "${HOME}/.config/gtk-4.0" ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets" ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css" ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"
(all these scripts do is soft-link the theme into the
gtk-4.0
theme directory)
How to use this script, Do I have to copy these codes somewhere?
Originally posted by @I-Iawk in https://github.com/vinceliuice/Lavanda-gtk-theme/issues/11#issuecomment-1499712175