forked from Shinonome/dots-hyprland
waffles: add config option for switch handle positioning
This commit is contained in:
@@ -584,7 +584,10 @@ Singleton {
|
|||||||
// Animations on Windoes are kinda janky. Setting the following to
|
// Animations on Windoes are kinda janky. Setting the following to
|
||||||
// false will make (some) stuff also be like that for accuracy.
|
// false will make (some) stuff also be like that for accuracy.
|
||||||
// Example: the right-click menu of the Start button
|
// 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 JsonObject bar: JsonObject {
|
||||||
property bool bottom: true
|
property bool bottom: true
|
||||||
property bool leftAlignApps: false
|
property bool leftAlignApps: false
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Loader {
|
|||||||
|
|
||||||
required property var contentItem
|
required property var contentItem
|
||||||
property real padding: Looks.radius.large - Looks.radius.medium
|
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
|
property bool closeOnFocusLost: true
|
||||||
signal focusCleared()
|
signal focusCleared()
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ Switch {
|
|||||||
if (root.checked) {
|
if (root.checked) {
|
||||||
return 24 - (root.pressed || root.down ? root.indicatorPressedWidthDiff : 0);
|
return 24 - (root.pressed || root.down ? root.indicatorPressedWidthDiff : 0);
|
||||||
} else {
|
} else {
|
||||||
return (root.pressed || root.down) ? 3 : 4
|
return (root.pressed || root.down) ? 3 : (Config.options.waffles.tweaks.switchHandlePositionFix ? 4 : 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user