add config to force terminal theming mode

This commit is contained in:
cupcat121
2025-09-06 11:26:42 +08:00
parent f593ad0f2c
commit ffb8e284b4
2 changed files with 14 additions and 1 deletions
@@ -91,6 +91,7 @@ Singleton {
property bool enableAppsAndShell: true
property bool enableQtApps: true
property bool enableTerminal: true
property bool forceTerminalDarkMode: false
}
property JsonObject palette: JsonObject {
property string type: "auto" // Allowed: auto, scheme-content, scheme-expressive, scheme-fidelity, scheme-fruit-salad, scheme-monochrome, scheme-neutral, scheme-rainbow, scheme-tonal-spot
@@ -40,7 +40,19 @@ ContentPage {
content: Translation.tr("Shell & utilities theming must also be enabled")
}
}
}
ConfigRow {
uniform: true
ConfigSwitch {
text: Translation.tr("Force dark mode in terminal")
checked: Config.options.appearance.wallpaperTheming.forceTerminalDarkMode
onCheckedChanged: {
Config.options.appearance.wallpaperTheming.forceTerminalDarkMode = checked;
}
StyledToolTip {
content: Translation.tr("Ignored if terminal theming is not enabled")
}
}
}
}
}