fix(theme): remove hyprland GTK_THEME override and inject gtk-application-prefer-dark-theme

This commit is contained in:
johannes committed 2026-08-16 17:40:02 +02:00
1 parent 0063fde73b
commit 7115fc5928
7 files changed
+14 -10

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
font-family = JetBrainsMono Nerd Font
theme = dark:Catppuccin Mocha,light:Catppuccin Latte
window-theme = ghostty
#command = nu
command = nu
background-blur = true
auto-update = check
macos-option-as-alt = left
+1 -1
View File
@@ -64,7 +64,7 @@ hl.env("TERM", "ghostty")
hl.env("TERMINAL", "ghostty")
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
hl.env("QT_QPA_PLATFORM", "wayland")
hl.env("GTK_THEME", "catppuccin-mocha-mauve-standard+default")
hl.env("PROTON_DLSS_UPGRADE", "1")
---------------------
+5 -3
View File
@@ -86,9 +86,11 @@ def apply-theme [selected: string] {
let color_scheme = if $choice == "mocha" { "prefer-dark" } else { "prefer-light" }
bash -lc $"gsettings set org.gnome.desktop.interface color-scheme ($color_scheme)"
if ($"($home)/.config/gtk-3.0/settings.ini" | path exists) {
bash -lc $'sed -i "s/^gtk-theme-name=.*/gtk-theme-name=($gtk_theme)/" "$HOME/.config/gtk-3.0/settings.ini"'
}
try {
mkdir $"($home)/.config/gtk-3.0"
} catch {}
let prefer_dark = if $choice == "mocha" { "1" } else { "0" }
$"[Settings]\ngtk-theme-name=($gtk_theme)\ngtk-application-prefer-dark-theme=($prefer_dark)\n" | save -f $"($home)/.config/gtk-3.0/settings.ini"
} catch {
}