mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-07 05:55:37 -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
|
height: 30
|
||||||
radius: Theme.cornerRadius
|
radius: Theme.cornerRadius
|
||||||
color: {
|
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;
|
const baseColor = mouseArea.containsMouse ? Theme.primaryHover : Theme.surfaceTextHover;
|
||||||
return Qt.rgba(baseColor.r, baseColor.g, baseColor.b, baseColor.a * Theme.widgetTransparency);
|
return Qt.rgba(baseColor.r, baseColor.g, baseColor.b, baseColor.a * Theme.widgetTransparency);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ Rectangle {
|
|||||||
height: 30
|
height: 30
|
||||||
radius: Theme.cornerRadius
|
radius: Theme.cornerRadius
|
||||||
color: {
|
color: {
|
||||||
|
// Only show background when there are system tray items to display
|
||||||
|
if (systemTrayRow.children.length === 0) {
|
||||||
|
return "transparent";
|
||||||
|
}
|
||||||
const baseColor = Theme.secondaryHover;
|
const baseColor = Theme.secondaryHover;
|
||||||
return Qt.rgba(baseColor.r, baseColor.g, baseColor.b, baseColor.a * Theme.widgetTransparency);
|
return Qt.rgba(baseColor.r, baseColor.g, baseColor.b, baseColor.a * Theme.widgetTransparency);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user