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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user