1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 15:02:50 -05:00

top bar manual show/hide

This commit is contained in:
bbedward
2025-08-23 15:33:42 -04:00
parent b8a2a3d613
commit d706043c78
4 changed files with 133 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ PanelWindow {
property real backgroundTransparency: SettingsData.topBarTransparency
readonly property int notificationCount: NotificationService.notifications.length
property bool autoHide: SettingsData.topBarAutoHide
property bool reveal: !autoHide || topBarMouseArea.containsMouse
property bool reveal: SettingsData.topBarVisible && (!autoHide || topBarMouseArea.containsMouse)
readonly property real effectiveBarHeight: Math.max(root.widgetHeight + SettingsData.topBarInnerPadding + 4, Theme.barHeight - 4 - (8 - SettingsData.topBarInnerPadding))
readonly property real widgetHeight: Math.max(20, 26 + SettingsData.topBarInnerPadding * 0.6)
@@ -155,7 +155,7 @@ PanelWindow {
right: true
}
exclusiveZone: autoHide ? -1 : root.effectiveBarHeight + SettingsData.topBarSpacing - 2
exclusiveZone: !SettingsData.topBarVisible || autoHide ? -1 : root.effectiveBarHeight + SettingsData.topBarSpacing - 2
mask: Region {
item: topBarMouseArea