1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

feat: Opt to display notifications over fullscreen apps

This commit is contained in:
purian23
2025-08-10 08:15:59 -04:00
parent a73da19db2
commit 11173aac96
3 changed files with 90 additions and 3 deletions

View File

@@ -58,8 +58,17 @@ PanelWindow {
}
visible: hasValidData
WlrLayershell.layer: notificationData && notificationData.urgency
=== NotificationUrgency.Critical ? WlrLayershell.Overlay : WlrLayershell.Top
WlrLayershell.layer: {
if (!notificationData) return WlrLayershell.Top
SettingsData.notificationOverlayEnabled
// If overlay is enabled for all notifications, or if it's a critical notification
const shouldUseOverlay = (SettingsData.notificationOverlayEnabled) ||
(notificationData.urgency === NotificationUrgency.Critical)
return shouldUseOverlay ? WlrLayershell.Overlay : WlrLayershell.Top
}
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
color: "transparent"