From 23dd7baf353f487b5be7ece6cd10a04e76078f44 Mon Sep 17 00:00:00 2001 From: zoe chen Date: Sat, 4 Oct 2025 01:02:36 +0800 Subject: [PATCH 1/4] Set background opacity when using live wallpaper It was causing thumbnail to display over mpvpaper --- .config/quickshell/ii/modules/background/Background.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 28f8028de..19fd60690 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -178,6 +178,7 @@ Variants { StyledImage { id: wallpaper visible: opacity > 0 && !blurLoader.active + opacity: (status === Image.Ready && !bgRoot.wallpaperIsVideo) ? 1 : 0 cache: false smooth: false // Range = groups that workspaces span on From 476755fc18646a0a28320342f83690c0d77b8724 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 4 Oct 2025 09:55:57 +0200 Subject: [PATCH 2/4] settings: add toggles for lock screen security options --- .../ii/modules/settings/InterfaceConfig.qml | 61 +++++++++++++++---- 1 file changed, 48 insertions(+), 13 deletions(-) diff --git a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index 76bd43b93..6f1c31571 100644 --- a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -96,7 +96,7 @@ ContentPage { ContentSection { icon: "point_scan" - title: Translation.tr("Crosshair") + title: Translation.tr("Crosshair overlay") MaterialTextArea { Layout.fillWidth: true @@ -109,6 +109,12 @@ ContentPage { } RowLayout { + StyledText { + Layout.leftMargin: 10 + color: Appearance.colors.colSubtext + font.pixelSize: Appearance.font.pixelSize.smallie + text: Translation.tr("Press Super+G to toggle appearance") + } Item { Layout.fillWidth: true } RippleButtonWithIcon { id: editorButton @@ -176,26 +182,33 @@ ContentPage { } ContentSubsection { - title: Translation.tr("Blurred style") + title: Translation.tr("Security") ConfigSwitch { - text: Translation.tr('Enable blur') - checked: Config.options.lock.blur.enable + text: Translation.tr('Require password to power off/restart') + checked: Config.options.lock.security.requirePasswordToPower onCheckedChanged: { - Config.options.lock.blur.enable = checked; + Config.options.lock.security.requirePasswordToPower = checked; + } + StyledToolTip { + text: Translation.tr("Remember that on most devices one can always hold the power button to force shutdown\nThis only makes it a tiny bit harder for accidents to happen") } } - ConfigSpinBox { - text: Translation.tr("Blur: Extra zoom (%)") - value: Config.options.lock.blur.extraZoom * 100 - from: 1 - to: 150 - stepSize: 2 - onValueChanged: { - Config.options.lock.blur.extraZoom = value / 100; + ConfigSwitch { + text: Translation.tr('Also unlock keyring') + checked: Config.options.lock.security.unlockKeyring + onCheckedChanged: { + Config.options.lock.security.unlockKeyring = checked; + } + StyledToolTip { + text: Translation.tr("This is usually safe and needed for your browser and AI sidebar anyway\nMostly useful for those who use lock on startup instead of a display manager that does it (GDM, SDDM, etc.)") } } + } + + ContentSubsection { + title: Translation.tr("Style: general") ConfigSwitch { text: Translation.tr('Center clock') @@ -212,6 +225,28 @@ ContentPage { Config.options.lock.showLockedText = checked; } } + } + ContentSubsection { + title: Translation.tr("Style: Blurred") + + ConfigSwitch { + text: Translation.tr('Enable blur') + checked: Config.options.lock.blur.enable + onCheckedChanged: { + Config.options.lock.blur.enable = checked; + } + } + + ConfigSpinBox { + text: Translation.tr("Extra wallpaper zoom (%)") + value: Config.options.lock.blur.extraZoom * 100 + from: 1 + to: 150 + stepSize: 2 + onValueChanged: { + Config.options.lock.blur.extraZoom = value / 100; + } + } } From 81bdb352aa5a8e3f755dbd0820f0a9fc96e4d632 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 4 Oct 2025 12:27:16 +0200 Subject: [PATCH 3/4] overview: fix dragging z index (#2068) --- .config/quickshell/ii/modules/overview/OverviewWidget.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/overview/OverviewWidget.qml b/.config/quickshell/ii/modules/overview/OverviewWidget.qml index 0487c6025..0e850493a 100644 --- a/.config/quickshell/ii/modules/overview/OverviewWidget.qml +++ b/.config/quickshell/ii/modules/overview/OverviewWidget.qml @@ -188,7 +188,7 @@ Item { } } - z: atInitPosition ? (root.windowZ + windowData?.floating) : root.windowDraggingZ + z: Drag.active ? root.windowDraggingZ : (root.windowZ + windowData?.floating) Drag.hotSpot.x: targetWindowWidth / 2 Drag.hotSpot.y: targetWindowHeight / 2 MouseArea { From 81287e9eb5220ae2387acb14220328b81b88f01a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 4 Oct 2025 12:54:34 +0200 Subject: [PATCH 4/4] settings: more icons --- .../modules/common/widgets/ConfigSpinBox.qml | 2 ++ .../modules/common/widgets/ConfigSwitch.qml | 2 ++ .../modules/common/widgets/StyledSpinBox.qml | 2 ++ .../ii/modules/settings/GeneralConfig.qml | 14 ++++++-- .../ii/modules/settings/InterfaceConfig.qml | 32 +++++++++++++++++++ .../ii/modules/settings/QuickConfig.qml | 1 + .../ii/modules/settings/ServicesConfig.qml | 1 + 7 files changed, 51 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml b/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml index 33fb84057..de70529f5 100644 --- a/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml +++ b/.config/quickshell/ii/modules/common/widgets/ConfigSpinBox.qml @@ -19,12 +19,14 @@ RowLayout { spacing: 10 OptionalMaterialSymbol { icon: root.icon + opacity: root.enabled ? 1 : 0.4 } StyledText { id: labelWidget Layout.fillWidth: true text: root.text color: Appearance.colors.colOnSecondaryContainer + opacity: root.enabled ? 1 : 0.4 } } diff --git a/.config/quickshell/ii/modules/common/widgets/ConfigSwitch.qml b/.config/quickshell/ii/modules/common/widgets/ConfigSwitch.qml index 349ee5737..13c43c552 100644 --- a/.config/quickshell/ii/modules/common/widgets/ConfigSwitch.qml +++ b/.config/quickshell/ii/modules/common/widgets/ConfigSwitch.qml @@ -18,6 +18,7 @@ RippleButton { spacing: 10 OptionalMaterialSymbol { icon: root.buttonIcon + opacity: root.enabled ? 1 : 0.4 iconSize: Appearance.font.pixelSize.larger } StyledText { @@ -26,6 +27,7 @@ RippleButton { text: root.text font: root.font color: Appearance.colors.colOnSecondaryContainer + opacity: root.enabled ? 1 : 0.4 } StyledSwitch { id: switchWidget diff --git a/.config/quickshell/ii/modules/common/widgets/StyledSpinBox.qml b/.config/quickshell/ii/modules/common/widgets/StyledSpinBox.qml index c11f241a0..c26efaf73 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledSpinBox.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledSpinBox.qml @@ -14,6 +14,8 @@ SpinBox { property real innerButtonRadius: Appearance.rounding.unsharpen editable: true + opacity: root.enabled ? 1 : 0.4 + background: Rectangle { color: Appearance.colors.colLayer2 radius: root.radius diff --git a/.config/quickshell/ii/modules/settings/GeneralConfig.qml b/.config/quickshell/ii/modules/settings/GeneralConfig.qml index 5ba068f10..fd5fc154d 100644 --- a/.config/quickshell/ii/modules/settings/GeneralConfig.qml +++ b/.config/quickshell/ii/modules/settings/GeneralConfig.qml @@ -15,6 +15,7 @@ ContentPage { title: Translation.tr("Audio") ConfigSwitch { + buttonIcon: "hearing" text: Translation.tr("Earbang protection") checked: Config.options.audio.protection.enable onCheckedChanged: { @@ -25,8 +26,9 @@ ContentPage { } } ConfigRow { - // uniform: true + enabled: Config.options.audio.protection.enable ConfigSpinBox { + icon: "arrow_warm_up" text: Translation.tr("Max allowed increase") value: Config.options.audio.protection.maxAllowedIncrease from: 0 @@ -37,6 +39,7 @@ ContentPage { } } ConfigSpinBox { + icon: "vertical_align_top" text: Translation.tr("Volume limit") value: Config.options.audio.protection.maxAllowed from: 0 @@ -56,6 +59,7 @@ ContentPage { ConfigRow { uniform: true ConfigSpinBox { + icon: "warning" text: Translation.tr("Low warning") value: Config.options.battery.low from: 0 @@ -66,6 +70,7 @@ ContentPage { } } ConfigSpinBox { + icon: "dangerous" text: Translation.tr("Critical warning") value: Config.options.battery.critical from: 0 @@ -77,8 +82,10 @@ ContentPage { } } ConfigRow { - uniform: true + uniform: false + Layout.fillWidth: false ConfigSwitch { + buttonIcon: "pause" text: Translation.tr("Automatic suspend") checked: Config.options.battery.automaticSuspend onCheckedChanged: { @@ -89,7 +96,8 @@ ContentPage { } } ConfigSpinBox { - text: Translation.tr("Suspend at") + enabled: Config.options.battery.automaticSuspend + text: Translation.tr("at") value: Config.options.battery.suspend from: 0 to: 100 diff --git a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index 6f1c31571..efcc4e69b 100644 --- a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -13,6 +13,7 @@ ContentPage { title: Translation.tr("Background") ConfigSwitch { + buttonIcon: "nest_clock_farsight_analog" text: Translation.tr("Show clock") checked: Config.options.background.clock.show onCheckedChanged: { @@ -21,6 +22,7 @@ ContentPage { } ConfigSpinBox { + icon: "loupe" text: Translation.tr("Scale (%)") value: Config.options.background.clock.scale * 100 from: 1 @@ -57,6 +59,7 @@ ContentPage { title: Translation.tr("Wallpaper parallax") ConfigSwitch { + buttonIcon: "unfold_more_double" text: Translation.tr("Vertical") checked: Config.options.background.parallax.vertical onCheckedChanged: { @@ -67,6 +70,7 @@ ContentPage { ConfigRow { uniform: true ConfigSwitch { + buttonIcon: "counter_1" text: Translation.tr("Depends on workspace") checked: Config.options.background.parallax.enableWorkspace onCheckedChanged: { @@ -74,6 +78,7 @@ ContentPage { } } ConfigSwitch { + buttonIcon: "side_navigation" text: Translation.tr("Depends on sidebars") checked: Config.options.background.parallax.enableSidebar onCheckedChanged: { @@ -82,6 +87,7 @@ ContentPage { } } ConfigSpinBox { + icon: "loupe" text: Translation.tr("Preferred wallpaper zoom (%)") value: Config.options.background.parallax.workspaceZoom * 100 from: 100 @@ -136,6 +142,7 @@ ContentPage { title: Translation.tr("Dock") ConfigSwitch { + buttonIcon: "check" text: Translation.tr("Enable") checked: Config.options.dock.enable onCheckedChanged: { @@ -146,6 +153,7 @@ ContentPage { ConfigRow { uniform: true ConfigSwitch { + buttonIcon: "highlight_mouse_cursor" text: Translation.tr("Hover to reveal") checked: Config.options.dock.hoverToReveal onCheckedChanged: { @@ -153,6 +161,7 @@ ContentPage { } } ConfigSwitch { + buttonIcon: "keep" text: Translation.tr("Pinned on startup") checked: Config.options.dock.pinnedOnStartup onCheckedChanged: { @@ -161,6 +170,7 @@ ContentPage { } } ConfigSwitch { + buttonIcon: "colors" text: Translation.tr("Tint app icons") checked: Config.options.dock.monochromeIcons onCheckedChanged: { @@ -174,6 +184,7 @@ ContentPage { title: Translation.tr("Lock screen") ConfigSwitch { + buttonIcon: "account_circle" text: Translation.tr('Launch on startup') checked: Config.options.lock.launchOnStartup onCheckedChanged: { @@ -185,6 +196,7 @@ ContentPage { title: Translation.tr("Security") ConfigSwitch { + buttonIcon: "settings_power" text: Translation.tr('Require password to power off/restart') checked: Config.options.lock.security.requirePasswordToPower onCheckedChanged: { @@ -196,6 +208,7 @@ ContentPage { } ConfigSwitch { + buttonIcon: "key_vertical" text: Translation.tr('Also unlock keyring') checked: Config.options.lock.security.unlockKeyring onCheckedChanged: { @@ -211,6 +224,7 @@ ContentPage { title: Translation.tr("Style: general") ConfigSwitch { + buttonIcon: "center_focus_weak" text: Translation.tr('Center clock') checked: Config.options.lock.centerClock onCheckedChanged: { @@ -219,6 +233,7 @@ ContentPage { } ConfigSwitch { + buttonIcon: "info" text: Translation.tr('Show "Locked" text') checked: Config.options.lock.showLockedText onCheckedChanged: { @@ -230,6 +245,7 @@ ContentPage { title: Translation.tr("Style: Blurred") ConfigSwitch { + buttonIcon: "blur_on" text: Translation.tr('Enable blur') checked: Config.options.lock.blur.enable onCheckedChanged: { @@ -238,6 +254,7 @@ ContentPage { } ConfigSpinBox { + icon: "loupe" text: Translation.tr("Extra wallpaper zoom (%)") value: Config.options.lock.blur.extraZoom * 100 from: 1 @@ -257,6 +274,7 @@ ContentPage { title: Translation.tr("Notifications") ConfigSpinBox { + icon: "av_timer" text: Translation.tr("Timeout duration (if not defined by notification) (ms)") value: Config.options.notifications.timeout from: 1000 @@ -273,6 +291,7 @@ ContentPage { title: Translation.tr("Sidebars") ConfigSwitch { + buttonIcon: "memory" text: Translation.tr('Keep right sidebar loaded') checked: Config.options.sidebar.keepRightSidebarLoaded onCheckedChanged: { @@ -289,6 +308,7 @@ ContentPage { ConfigRow { uniform: true ConfigSwitch { + buttonIcon: "check" text: Translation.tr("Enable") checked: Config.options.sidebar.cornerOpen.enable onCheckedChanged: { @@ -296,6 +316,7 @@ ContentPage { } } ConfigSwitch { + buttonIcon: "highlight_mouse_cursor" text: Translation.tr("Hover to trigger") checked: Config.options.sidebar.cornerOpen.clickless onCheckedChanged: { @@ -310,6 +331,7 @@ ContentPage { ConfigRow { uniform: true ConfigSwitch { + buttonIcon: "vertical_align_bottom" text: Translation.tr("Place at bottom") checked: Config.options.sidebar.cornerOpen.bottom onCheckedChanged: { @@ -321,6 +343,7 @@ ContentPage { } } ConfigSwitch { + buttonIcon: "unfold_more_double" text: Translation.tr("Value scroll") checked: Config.options.sidebar.cornerOpen.valueScroll onCheckedChanged: { @@ -333,6 +356,7 @@ ContentPage { } } ConfigSwitch { + buttonIcon: "visibility" text: Translation.tr("Visualize region") checked: Config.options.sidebar.cornerOpen.visualize onCheckedChanged: { @@ -341,6 +365,7 @@ ContentPage { } ConfigRow { ConfigSpinBox { + icon: "arrow_range" text: Translation.tr("Region width") value: Config.options.sidebar.cornerOpen.cornerRegionWidth from: 1 @@ -351,6 +376,7 @@ ContentPage { } } ConfigSpinBox { + icon: "height" text: Translation.tr("Region height") value: Config.options.sidebar.cornerOpen.cornerRegionHeight from: 1 @@ -369,6 +395,7 @@ ContentPage { title: Translation.tr("On-screen display") ConfigSpinBox { + icon: "av_timer" text: Translation.tr("Timeout (ms)") value: Config.options.osd.timeout from: 100 @@ -385,6 +412,7 @@ ContentPage { title: Translation.tr("Overview") ConfigSwitch { + buttonIcon: "check" text: Translation.tr("Enable") checked: Config.options.overview.enable onCheckedChanged: { @@ -392,6 +420,7 @@ ContentPage { } } ConfigSpinBox { + icon: "loupe" text: Translation.tr("Scale (%)") value: Config.options.overview.scale * 100 from: 1 @@ -404,6 +433,7 @@ ContentPage { ConfigRow { uniform: true ConfigSpinBox { + icon: "splitscreen_bottom" text: Translation.tr("Rows") value: Config.options.overview.rows from: 1 @@ -414,6 +444,7 @@ ContentPage { } } ConfigSpinBox { + icon: "splitscreen_right" text: Translation.tr("Columns") value: Config.options.overview.columns from: 1 @@ -431,6 +462,7 @@ ContentPage { title: Translation.tr("Screenshot tool") ConfigSwitch { + buttonIcon: "nearby" text: Translation.tr('Show regions of potential interest') checked: Config.options.screenshotTool.showContentRegions onCheckedChanged: { diff --git a/.config/quickshell/ii/modules/settings/QuickConfig.qml b/.config/quickshell/ii/modules/settings/QuickConfig.qml index b14cb085a..66055a5d8 100644 --- a/.config/quickshell/ii/modules/settings/QuickConfig.qml +++ b/.config/quickshell/ii/modules/settings/QuickConfig.qml @@ -221,6 +221,7 @@ ContentPage { } ConfigSwitch { + buttonIcon: "ev_shadow" text: Translation.tr("Transparency") checked: Config.options.appearance.transparency.enable onCheckedChanged: { diff --git a/.config/quickshell/ii/modules/settings/ServicesConfig.qml b/.config/quickshell/ii/modules/settings/ServicesConfig.qml index dc7817cab..e6be25e2a 100644 --- a/.config/quickshell/ii/modules/settings/ServicesConfig.qml +++ b/.config/quickshell/ii/modules/settings/ServicesConfig.qml @@ -47,6 +47,7 @@ ContentPage { title: Translation.tr("Resources") ConfigSpinBox { + icon: "av_timer" text: Translation.tr("Polling interval (ms)") value: Config.options.resources.updateInterval from: 100