settings: add advanced terminal color generation props

This commit is contained in:
end-4
2025-09-07 22:53:18 +02:00
parent 81ebf9cc11
commit f33eaf6d0f
3 changed files with 63 additions and 28 deletions
@@ -16,6 +16,7 @@ RowLayout {
Layout.rightMargin: 8 Layout.rightMargin: 8
RowLayout { RowLayout {
spacing: 10
OptionalMaterialSymbol { OptionalMaterialSymbol {
icon: root.icon icon: root.icon
} }
@@ -11,9 +11,8 @@ ContentPage {
icon: "colors" icon: "colors"
title: Translation.tr("Color generation") title: Translation.tr("Color generation")
ConfigRow {
uniform: true
ConfigSwitch { ConfigSwitch {
buttonIcon: "hardware"
text: Translation.tr("Shell & utilities") text: Translation.tr("Shell & utilities")
checked: Config.options.appearance.wallpaperTheming.enableAppsAndShell checked: Config.options.appearance.wallpaperTheming.enableAppsAndShell
onCheckedChanged: { onCheckedChanged: {
@@ -21,6 +20,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "tv_options_input_settings"
text: Translation.tr("Qt apps") text: Translation.tr("Qt apps")
checked: Config.options.appearance.wallpaperTheming.enableQtApps checked: Config.options.appearance.wallpaperTheming.enableQtApps
onCheckedChanged: { onCheckedChanged: {
@@ -31,6 +31,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "terminal"
text: Translation.tr("Terminal") text: Translation.tr("Terminal")
checked: Config.options.appearance.wallpaperTheming.enableTerminal checked: Config.options.appearance.wallpaperTheming.enableTerminal
onCheckedChanged: { onCheckedChanged: {
@@ -41,6 +42,39 @@ ContentPage {
} }
} }
ConfigSpinBox {
icon: "invert_colors"
text: Translation.tr("Terminal: Harmony (%)")
value: Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmony * 100
from: 0
to: 100
stepSize: 10
onValueChanged: {
Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmony = value / 100;
}
}
ConfigSpinBox {
icon: "gradient"
text: Translation.tr("Terminal: Harmonize threshold")
value: Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmonizeThreshold
from: 0
to: 100
stepSize: 10
onValueChanged: {
Config.options.appearance.wallpaperTheming.terminalGenerationProps.harmonizeThreshold = value;
}
}
ConfigSpinBox {
icon: "format_color_text"
text: Translation.tr("Terminal: Foreground boost (%)")
value: Config.options.appearance.wallpaperTheming.terminalGenerationProps.termFgBoost * 100
from: 0
to: 100
stepSize: 10
onValueChanged: {
Config.options.appearance.wallpaperTheming.terminalGenerationProps.termFgBoost = value / 100;
} }
} }
} }
}
+2 -2
View File
@@ -30,7 +30,7 @@ ApplicationWindow {
}, },
{ {
name: Translation.tr("General"), name: Translation.tr("General"),
icon: "dashboard", icon: "browse",
iconRotation: 180, iconRotation: 180,
component: "modules/settings/GeneralConfig.qml" component: "modules/settings/GeneralConfig.qml"
}, },
@@ -42,7 +42,7 @@ ApplicationWindow {
}, },
{ {
name: Translation.tr("Interface"), name: Translation.tr("Interface"),
icon: "cards", icon: "bottom_app_bar",
component: "modules/settings/InterfaceConfig.qml" component: "modules/settings/InterfaceConfig.qml"
}, },
{ {