Skip to content

Commit 6b08a96

Browse files
committed
small ux fixes for sidebars
1 parent 84617fd commit 6b08a96

3 files changed

Lines changed: 3 additions & 31 deletions

File tree

dot_files/quickshell/modules/sidebars/SidebarLeft.qml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ PanelWindow {
3636
property var searchResults: []
3737
property string currentQuery: ""
3838

39-
// Background (slide animation applied to content instead of window)
39+
// Background
4040
Rectangle {
4141
anchors.fill: parent
4242
color: Qt.rgba(
@@ -45,15 +45,6 @@ PanelWindow {
4545
Common.Appearance.m3colors.surface.b,
4646
Common.Appearance.panelOpacity
4747
)
48-
49-
// Right border
50-
Rectangle {
51-
anchors.right: parent.right
52-
anchors.top: parent.top
53-
anchors.bottom: parent.bottom
54-
width: 1
55-
color: Common.Appearance.m3colors.outlineVariant
56-
}
5748
}
5849

5950
// Content

dot_files/quickshell/modules/sidebars/SidebarRight.qml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ PanelWindow {
4242
Common.Appearance.m3colors.surface.b,
4343
Common.Appearance.panelOpacity
4444
)
45-
46-
// Left border
47-
Rectangle {
48-
anchors.left: parent.left
49-
anchors.top: parent.top
50-
anchors.bottom: parent.bottom
51-
width: 1
52-
color: Common.Appearance.m3colors.outlineVariant
53-
}
5445
}
5546

5647
// Bluetooth View (shown when sidebarRightView === "bluetooth")

dot_files/quickshell/shell.qml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,9 @@ ShellRoot {
112112
}
113113
}
114114

115-
// Click catcher for sidebars (on appropriate screens)
116-
// Left sidebar click catcher (only on leftmost screen)
115+
// Click catcher for sidebars (on ALL screens when any sidebar is open)
117116
Loader {
118-
active: GlobalStates.isLeftmostScreen(screenRoot.screen) && GlobalStates.sidebarLeftOpen
119-
sourceComponent: Common.ClickCatcher {
120-
targetScreen: screenRoot.screen
121-
onClicked: GlobalStates.closeAll()
122-
}
123-
}
124-
125-
// Right sidebar click catcher (only on rightmost screen)
126-
Loader {
127-
active: GlobalStates.isRightmostScreen(screenRoot.screen) && GlobalStates.sidebarRightOpen
117+
active: GlobalStates.sidebarLeftOpen || GlobalStates.sidebarRightOpen
128118
sourceComponent: Common.ClickCatcher {
129119
targetScreen: screenRoot.screen
130120
onClicked: GlobalStates.closeAll()

0 commit comments

Comments
 (0)