forked from Shinonome/dots-hyprland
vertical bar: fix weird occupied ws highlight when toggling bar floating
This commit is contained in:
@@ -108,7 +108,6 @@ Item { // Bar content region
|
|||||||
id: middleCenterGroup
|
id: middleCenterGroup
|
||||||
vertical: true
|
vertical: true
|
||||||
padding: 6
|
padding: 6
|
||||||
Layout.fillHeight: true
|
|
||||||
|
|
||||||
Workspaces {
|
Workspaces {
|
||||||
id: workspacesWidget
|
id: workspacesWidget
|
||||||
|
|||||||
@@ -106,11 +106,7 @@ Item {
|
|||||||
z: 1
|
z: 1
|
||||||
|
|
||||||
spacing: 0
|
spacing: 0
|
||||||
anchors {
|
anchors.fill: parent
|
||||||
top: parent.top
|
|
||||||
bottom: parent.bottom
|
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
}
|
|
||||||
implicitWidth: Appearance.sizes.verticalBarWidth
|
implicitWidth: Appearance.sizes.verticalBarWidth
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
@@ -126,6 +122,8 @@ Item {
|
|||||||
property var radiusTop: previousOccupied ? 0 : (width / 2)
|
property var radiusTop: previousOccupied ? 0 : (width / 2)
|
||||||
property var radiusBottom: nextOccupied ? 0 : (width / 2)
|
property var radiusBottom: nextOccupied ? 0 : (width / 2)
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
topLeftRadius: radiusTop
|
topLeftRadius: radiusTop
|
||||||
topRightRadius: radiusTop
|
topRightRadius: radiusTop
|
||||||
bottomLeftRadius: radiusBottom
|
bottomLeftRadius: radiusBottom
|
||||||
|
|||||||
Reference in New Issue
Block a user