From 6e986fa8b09785a649c18c61dd7fe86a881fcac1 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 23 Nov 2025 11:38:57 +0100 Subject: [PATCH] waffles: add config option for switch handle positioning --- dots/.config/quickshell/ii/modules/common/Config.qml | 5 ++++- dots/.config/quickshell/ii/modules/waffle/bar/BarPopup.qml | 2 +- dots/.config/quickshell/ii/modules/waffle/looks/WSwitch.qml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/Config.qml b/dots/.config/quickshell/ii/modules/common/Config.qml index f8e1ba69a..610a4959d 100644 --- a/dots/.config/quickshell/ii/modules/common/Config.qml +++ b/dots/.config/quickshell/ii/modules/common/Config.qml @@ -584,7 +584,10 @@ Singleton { // Animations on Windoes are kinda janky. Setting the following to // false will make (some) stuff also be like that for accuracy. // Example: the right-click menu of the Start button - property bool smootherAnimations: true + property JsonObject tweaks: JsonObject { + property bool smootherMenuAnimations: true + property bool switchHandlePositionFix: true + } property JsonObject bar: JsonObject { property bool bottom: true property bool leftAlignApps: false diff --git a/dots/.config/quickshell/ii/modules/waffle/bar/BarPopup.qml b/dots/.config/quickshell/ii/modules/waffle/bar/BarPopup.qml index 37aaece92..cf2f505a1 100644 --- a/dots/.config/quickshell/ii/modules/waffle/bar/BarPopup.qml +++ b/dots/.config/quickshell/ii/modules/waffle/bar/BarPopup.qml @@ -12,7 +12,7 @@ Loader { required property var contentItem property real padding: Looks.radius.large - Looks.radius.medium - property bool noSmoothClosing: !Config.options.waffles.smootherAnimations + property bool noSmoothClosing: !Config.options.waffles.tweaks.smootherMenuAnimations property bool closeOnFocusLost: true signal focusCleared() diff --git a/dots/.config/quickshell/ii/modules/waffle/looks/WSwitch.qml b/dots/.config/quickshell/ii/modules/waffle/looks/WSwitch.qml index 005f2cc45..9d173f1c0 100644 --- a/dots/.config/quickshell/ii/modules/waffle/looks/WSwitch.qml +++ b/dots/.config/quickshell/ii/modules/waffle/looks/WSwitch.qml @@ -46,7 +46,7 @@ Switch { if (root.checked) { return 24 - (root.pressed || root.down ? root.indicatorPressedWidthDiff : 0); } else { - return (root.pressed || root.down) ? 3 : 4 + return (root.pressed || root.down) ? 3 : (Config.options.waffles.tweaks.switchHandlePositionFix ? 4 : 3); } }