1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

make show on overview top bar independent

This commit is contained in:
bbedward
2025-09-08 19:52:27 -04:00
parent e2945a6a2a
commit 47b6b365a1
3 changed files with 74 additions and 66 deletions

View File

@@ -139,7 +139,19 @@ PanelWindow {
property real backgroundTransparency: SettingsData.topBarTransparency
property bool autoHide: SettingsData.topBarAutoHide
property bool reveal: SettingsData.topBarVisible && (!autoHide || topBarMouseArea.containsMouse || hasActivePopout || (SettingsData.topBarOpenOnOverview && CompositorService.isNiri && NiriService.inOverview))
property bool reveal: {
// Handle Niri overview state first
if (CompositorService.isNiri && NiriService.inOverview) {
// If Show on Overview is enabled, show the bar
if (SettingsData.topBarOpenOnOverview) {
return true
}
// If Show on Overview is disabled, hide the bar
return false
}
// Normal visibility logic when not in overview
return SettingsData.topBarVisible && (!autoHide || topBarMouseArea.containsMouse || hasActivePopout)
}
property var notepadInstance: null
property bool notepadInstanceVisible: notepadInstance?.notepadVisible ?? false