MatugenTemplates: add #409 again

This commit is contained in:
Ly-sec
2025-10-04 00:30:08 +02:00
parent 46707fb926
commit d6da018591

View File

@@ -14,6 +14,7 @@ Singleton {
// Build the base TOML using current settings
function buildConfigToml() {
var lines = []
var mode = Settings.data.colorSchemes.darkMode ? "dark" : "light";
lines.push("[config]")
if (Settings.data.colorSchemes.useWallpaperColors) {
@@ -51,10 +52,12 @@ Singleton {
lines.push("\n[templates.gtk3]")
lines.push('input_path = "' + Quickshell.shellDir + '/Assets/MatugenTemplates/gtk.css"')
lines.push('output_path = "~/.config/gtk-3.0/gtk.css"')
lines.push("post_hook = 'gsettings set org.gnome.desktop.interface color-scheme prefer-" + mode + "'");
lines.push("\n[templates.gtk4]")
lines.push('input_path = "' + Quickshell.shellDir + '/Assets/MatugenTemplates/gtk.css"')
lines.push('output_path = "~/.config/gtk-4.0/gtk.css"')
lines.push("post_hook = 'gsettings set org.gnome.desktop.interface color-scheme prefer-" + mode + "'");
}
if (Settings.data.templates.qt) {