From f33eaf6d0f95db929fb20695585c522a887d70e4 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 7 Sep 2025 22:53:18 +0200 Subject: [PATCH] settings: add advanced terminal color generation props --- .../modules/common/widgets/ConfigSpinBox.qml | 1 + .../ii/modules/settings/AdvancedConfig.qml | 86 +++++++++++++------ .config/quickshell/ii/settings.qml | 4 +- 3 files changed, 63 insertions(+), 28 deletions(-) diff --git a/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml b/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml index a96aed514..2c9d7eabb 100644 --- a/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml +++ b/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml @@ -16,6 +16,7 @@ RowLayout { Layout.rightMargin: 8 RowLayout { + spacing: 10 OptionalMaterialSymbol { icon: root.icon } diff --git a/.config/quickshell/ii/modules/settings/AdvancedConfig.qml b/.config/quickshell/ii/modules/settings/AdvancedConfig.qml index 13e97deb2..d28f7fb5b 100644 --- a/.config/quickshell/ii/modules/settings/AdvancedConfig.qml +++ b/.config/quickshell/ii/modules/settings/AdvancedConfig.qml @@ -11,36 +11,70 @@ ContentPage { icon: "colors" title: Translation.tr("Color generation") - ConfigRow { - uniform: true - ConfigSwitch { - text: Translation.tr("Shell & utilities") - checked: Config.options.appearance.wallpaperTheming.enableAppsAndShell - onCheckedChanged: { - Config.options.appearance.wallpaperTheming.enableAppsAndShell = checked; - } + ConfigSwitch { + buttonIcon: "hardware" + text: Translation.tr("Shell & utilities") + checked: Config.options.appearance.wallpaperTheming.enableAppsAndShell + onCheckedChanged: { + Config.options.appearance.wallpaperTheming.enableAppsAndShell = checked; } - ConfigSwitch { - text: Translation.tr("Qt apps") - checked: Config.options.appearance.wallpaperTheming.enableQtApps - onCheckedChanged: { - Config.options.appearance.wallpaperTheming.enableQtApps = checked; - } - StyledToolTip { - content: Translation.tr("Shell & utilities theming must also be enabled") - } + } + ConfigSwitch { + buttonIcon: "tv_options_input_settings" + text: Translation.tr("Qt apps") + checked: Config.options.appearance.wallpaperTheming.enableQtApps + onCheckedChanged: { + Config.options.appearance.wallpaperTheming.enableQtApps = checked; } - ConfigSwitch { - 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") - } + 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; + } } } + } diff --git a/.config/quickshell/ii/settings.qml b/.config/quickshell/ii/settings.qml index 22a6a7ddf..0f52b2382 100644 --- a/.config/quickshell/ii/settings.qml +++ b/.config/quickshell/ii/settings.qml @@ -30,7 +30,7 @@ ApplicationWindow { }, { name: Translation.tr("General"), - icon: "dashboard", + icon: "browse", iconRotation: 180, component: "modules/settings/GeneralConfig.qml" }, @@ -42,7 +42,7 @@ ApplicationWindow { }, { name: Translation.tr("Interface"), - icon: "cards", + icon: "bottom_app_bar", component: "modules/settings/InterfaceConfig.qml" }, {