1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-11 06:49:37 -04:00

feat(IPC): Add dbar toggleReveal logic for autohide modes

This commit is contained in:
purian23
2026-05-09 23:49:25 -04:00
parent c6a1473d2f
commit 1ec0311086
5 changed files with 62 additions and 3 deletions

View File

@@ -810,6 +810,7 @@ PanelWindow {
property bool autoHide: barConfig?.autoHide ?? false
property bool revealSticky: false
readonly property bool ipcReveal: !!SettingsData.barIpcRevealStates[barConfig?.id ?? ""]
Timer {
id: revealHold
@@ -832,14 +833,14 @@ PanelWindow {
const showOnWindowsSetting = barConfig?.showOnWindowsOpen ?? false;
if (showOnWindowsSetting && autoHide && (CompositorService.isNiri || CompositorService.isHyprland)) {
if (barWindow.shouldHideForWindows)
return topBarMouseArea.containsMouse || revealSticky;
return topBarMouseArea.containsMouse || revealSticky || ipcReveal;
return true;
}
if (CompositorService.isNiri && NiriService.inOverview)
return topBarMouseArea.containsMouse || revealSticky;
return topBarMouseArea.containsMouse || revealSticky || ipcReveal;
return (barConfig?.visible ?? true) && (!autoHide || topBarMouseArea.containsMouse || revealSticky);
return (barConfig?.visible ?? true) && (!autoHide || topBarMouseArea.containsMouse || revealSticky || ipcReveal);
}
Connections {
@@ -855,6 +856,7 @@ PanelWindow {
return;
if (topBarMouseArea.containsMouse) {
SettingsData.setBarIpcReveal(barConfig?.id ?? "", false);
revealSticky = true;
revealHold.stop();
return;