diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml index c8c017c3..2d3aca1b 100644 --- a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml +++ b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | |||
@@ -48,7 +48,7 @@ Row { | |||
48 | cursorShape: Qt.PointingHandCursor | 48 | cursorShape: Qt.PointingHandCursor |
49 | enabled: true | 49 | enabled: true |
50 | onClicked: { | 50 | onClicked: { |
51 | NiriService.sendCommand({ "Action": { "FocusWorkspace": { "reference": { "Id": workspaceData.id } } } }, _ => {}) | 51 | NiriService.sendCommand({ "Action": { "FocusWorkspace": { "reference": { "Id": workspaceData.id } } } }, _ => {}); |
52 | } | 52 | } |
53 | 53 | ||
54 | Rectangle { | 54 | Rectangle { |
@@ -149,6 +149,8 @@ Row { | |||
149 | WrapperMouseArea { | 149 | WrapperMouseArea { |
150 | id: windowMouseArea | 150 | id: windowMouseArea |
151 | 151 | ||
152 | required property int index | ||
153 | required property var modelData | ||
152 | property var windowData: modelData | 154 | property var windowData: modelData |
153 | 155 | ||
154 | hoverEnabled: true | 156 | hoverEnabled: true |
@@ -164,12 +166,11 @@ Row { | |||
164 | WrapperRectangle { | 166 | WrapperRectangle { |
165 | color: windowMouseArea.containsMouse ? "#33808080" : "transparent"; | 167 | color: windowMouseArea.containsMouse ? "#33808080" : "transparent"; |
166 | 168 | ||
167 | anchors.fill: parent | ||
168 | |||
169 | WrapperItem { | 169 | WrapperItem { |
170 | anchors.fill: parent | 170 | rightMargin: 8 |
171 | 171 | leftMargin: 8 | |
172 | margin: 4 | 172 | topMargin: windowMouseArea.index == 0 ? 8 : 4 |
173 | bottomMargin: windowMouseArea.index == windowsModel.values.length - 1 ? 8 : 4 | ||
173 | 174 | ||
174 | Text { | 175 | Text { |
175 | id: windowLabel | 176 | id: windowLabel |