waffles: add config option for switch handle positioning

This commit is contained in:
end-4
2025-11-23 11:38:57 +01:00
parent adfc7a15e8
commit 6e986fa8b0
3 changed files with 6 additions and 3 deletions
@@ -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()
@@ -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);
}
}