fix: fix various misc minor issues

This commit is contained in:
ferreo 2025-07-13 16:32:28 +01:00
parent 14ecba35ae
commit d507c8f3a9
7 changed files with 55 additions and 30 deletions

View file

@ -99,11 +99,15 @@ Scope {
Brightness {
id: widgetsBrightness
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: 1
}
Volume {
id: widgetsVolume
shell: rootScope.shell
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: 1
}
SystemTray {
@ -117,7 +121,10 @@ Scope {
id: externalTrayMenu
}
ClockWidget {}
ClockWidget {
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: 1
}
PanelPopup {
id: sidebarPopup
@ -125,6 +132,8 @@ Scope {
Button {
barBackground: barBackground
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: 1
screen: modelData
sidebarPopup: sidebarPopup
}

View file

@ -26,6 +26,9 @@ Item {
if (ToplevelManager.activeToplevel?.appId) {
activeWindowWrapper.shouldShow = true
visibilityTimer.restart()
} else {
activeWindowWrapper.shouldShow = false
visibilityTimer.stop()
}
}
}

View file

@ -89,10 +89,12 @@ PopupWindow {
}
Rectangle {
id: bg
anchors.fill: parent
color: mouseArea.containsMouse ? Theme.highlight : "transparent"
radius: 6
visible: !(modelData?.isSeparator ?? false)
property color hoverTextColor: mouseArea.containsMouse ? Theme.onAccent : Theme.textPrimary
RowLayout {
anchors.fill: parent
@ -102,7 +104,7 @@ PopupWindow {
Text {
Layout.fillWidth: true
color: (modelData?.enabled ?? true) ? Theme.textPrimary : Theme.textDisabled
color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Theme.textDisabled
text: modelData?.text ?? ""
font.family: Theme.fontFamily
font.pixelSize: Theme.fontSizeSmall