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

Update logic to conditionally hide focusedApp & systemTray if no data is available

This commit is contained in:
purian23
2025-07-27 00:12:54 -04:00
parent 43f7ae89cc
commit cb676d02b8
2 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ Rectangle {
height: 30
radius: Theme.cornerRadius
color: {
// Only show background when there's content to display
if (!FocusedWindowService.focusedAppName && !FocusedWindowService.focusedWindowTitle) {
return "transparent";
}
const baseColor = mouseArea.containsMouse ? Theme.primaryHover : Theme.surfaceTextHover;
return Qt.rgba(baseColor.r, baseColor.g, baseColor.b, baseColor.a * Theme.widgetTransparency);
}