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,36 +11,70 @@ ContentPage {
icon: "colors" icon: "colors"
title: Translation.tr("Color generation") title: Translation.tr("Color generation")
ConfigRow { ConfigSwitch {
uniform: true buttonIcon: "hardware"
ConfigSwitch { text: Translation.tr("Shell & utilities")
text: Translation.tr("Shell & utilities") checked: Config.options.appearance.wallpaperTheming.enableAppsAndShell
checked: Config.options.appearance.wallpaperTheming.enableAppsAndShell onCheckedChanged: {
onCheckedChanged: { Config.options.appearance.wallpaperTheming.enableAppsAndShell = checked;
Config.options.appearance.wallpaperTheming.enableAppsAndShell = checked;
}
} }
ConfigSwitch { }
text: Translation.tr("Qt apps") ConfigSwitch {
checked: Config.options.appearance.wallpaperTheming.enableQtApps buttonIcon: "tv_options_input_settings"
onCheckedChanged: { text: Translation.tr("Qt apps")
Config.options.appearance.wallpaperTheming.enableQtApps = checked; checked: Config.options.appearance.wallpaperTheming.enableQtApps
} onCheckedChanged: {
StyledToolTip { Config.options.appearance.wallpaperTheming.enableQtApps = checked;
content: Translation.tr("Shell & utilities theming must also be enabled")
}
} }
ConfigSwitch { StyledToolTip {
text: Translation.tr("Terminal") content: Translation.tr("Shell & utilities theming must also be enabled")
checked: Config.options.appearance.wallpaperTheming.enableTerminal
onCheckedChanged: {
Config.options.appearance.wallpaperTheming.enableTerminal = checked;
}
StyledToolTip {
content: Translation.tr("Shell & utilities theming must also be enabled")
}
} }
}
ConfigSwitch {
buttonIcon: "terminal"
text: Translation.tr("Terminal")
checked: Config.options.appearance.wallpaperTheming.enableTerminal
onCheckedChanged: {
Config.options.appearance.wallpaperTheming.enableTerminal = checked;
}
StyledToolTip {
content: Translation.tr("Shell & utilities theming must also be enabled")
}
}
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"
}, },
{ {