better hints

This commit is contained in:
ari committed 2026-09-23 13:55:18 -04:00
1 parent fbe56658b6
commit bcf70106e2
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -654,7 +654,7 @@ PanelWindow {
const steps = index - column.selectedWs;
if (!root.windowsOpen || !column.isCurrentColumn || steps === 0)
return 0;
const nearest = steps < 0 ? windowLoop.frontTop - root.theme.loopWorkspaceGap - root.neighbourHalfHeight : windowLoop.frontBottom + root.theme.loopWorkspaceGap + root.neighbourHalfHeight;
const nearest = steps < 0 ? windowLoop.frontTop - root.theme.loopWorkspaceGapAbove - root.neighbourHalfHeight : windowLoop.frontBottom + root.theme.loopWorkspaceGapBelow + root.neighbourHalfHeight;
return nearest - Math.sign(steps) * root.theme.carouselStepY;
}
// They also lean back: the top edge away above the
+3 -1
View File
@@ -79,8 +79,10 @@ QtObject {
// While the loop is open, other monitors sit this far past its edge,
// and workspaces above and below sit this far from the front window.
// The gap below leaves room for the key hint under the window.
readonly property real loopEdgeGap: 40
readonly property real loopWorkspaceGap: 10
readonly property real loopWorkspaceGapAbove: 10
readonly property real loopWorkspaceGapBelow: 30
// Extra fade on those cards while the loop is open. The workspaces
// right above and below use loopNeighbourFade.
readonly property real loopHiddenFade: 0.75