forked from Shinonome/dots-hyprland
hefty: bar: ws: improve hover indicator readability
This commit is contained in:
@@ -30,16 +30,10 @@ Item {
|
|||||||
anchors.right: !root.vertical ? centerSide.left : parent.right
|
anchors.right: !root.vertical ? centerSide.left : parent.right
|
||||||
anchors.bottom: root.vertical ? parent.bottom : undefined
|
anchors.bottom: root.vertical ? parent.bottom : undefined
|
||||||
HBarUserFallbackComponentRepeater {
|
HBarUserFallbackComponentRepeater {
|
||||||
componentNames: {
|
componentNames: [
|
||||||
print(JSON.stringify([
|
|
||||||
...root.centerLeftWidgets,
|
...root.centerLeftWidgets,
|
||||||
...(root.centerLeftWidgets.length > 0 ? [invisibleItem] : []),
|
...(root.centerLeftWidgets.length > 0 ? [invisibleItem] : []),
|
||||||
], null, 2));
|
]
|
||||||
return [
|
|
||||||
...root.centerLeftWidgets,
|
|
||||||
...(root.centerLeftWidgets.length > 0 ? [invisibleItem] : []),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ Item {
|
|||||||
/////////////////// Hover ///////////////////
|
/////////////////// Hover ///////////////////
|
||||||
ButtonMouseArea {
|
ButtonMouseArea {
|
||||||
id: interactionMouseArea
|
id: interactionMouseArea
|
||||||
|
z: 3
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
@@ -162,7 +163,8 @@ Item {
|
|||||||
radius: root.activeWorkspaceSize / 2
|
radius: root.activeWorkspaceSize / 2
|
||||||
hover: interactionMouseArea.containsMouse
|
hover: interactionMouseArea.containsMouse
|
||||||
press: interactionMouseArea.containsPress
|
press: interactionMouseArea.containsPress
|
||||||
contentColor: Appearance.colors.colPrimary
|
drag: true // There are too many layers so we need to force this to be a lil more opaque
|
||||||
|
contentColor: Appearance.colors.colTertiary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user