Commit dda77f87 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Disabled clickable elements in sidebar when sidebar is collapsed

parent 31b175e0
Pipeline #93305 canceled with stage
...@@ -334,6 +334,7 @@ Kirigami.OverlayDrawer { ...@@ -334,6 +334,7 @@ Kirigami.OverlayDrawer {
delegate: Kirigami.BasicListItem { delegate: Kirigami.BasicListItem {
Layout.fillWidth: true Layout.fillWidth: true
enabled: !sidebar.collapsed
label: display label: display
labelItem.color: Kirigami.Theme.textColor labelItem.color: Kirigami.Theme.textColor
...@@ -388,6 +389,7 @@ Kirigami.OverlayDrawer { ...@@ -388,6 +389,7 @@ Kirigami.OverlayDrawer {
topPadding: 2 * Kirigami.Units.largeSpacing topPadding: 2 * Kirigami.Units.largeSpacing
leftPadding: Kirigami.Settings.isMobile ? Kirigami.Units.largeSpacing * 2 : Kirigami.Units.largeSpacing leftPadding: Kirigami.Settings.isMobile ? Kirigami.Units.largeSpacing * 2 : Kirigami.Units.largeSpacing
hoverEnabled: false hoverEnabled: false
enabled: !sidebar.collapsed
background: Item {} background: Item {}
separatorVisible: false separatorVisible: false
...@@ -419,6 +421,7 @@ Kirigami.OverlayDrawer { ...@@ -419,6 +421,7 @@ Kirigami.OverlayDrawer {
leftPadding: Kirigami.Settings.isMobile ? Kirigami.Units.largeSpacing * 2 : Kirigami.Units.largeSpacing leftPadding: Kirigami.Settings.isMobile ? Kirigami.Units.largeSpacing * 2 : Kirigami.Units.largeSpacing
separatorVisible: false separatorVisible: false
reserveSpaceForIcon: true reserveSpaceForIcon: true
enabled: !sidebar.collapsed
trailing: ColoredCheckbox { trailing: ColoredCheckbox {
id: calendarCheckbox id: calendarCheckbox
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment