TrayMenu: fix dynamic scaling

This commit is contained in:
LemmyCook 2025-09-01 14:41:12 -04:00
parent 210bbac583
commit 87067f7062
2 changed files with 18 additions and 7 deletions

View file

@ -17,6 +17,15 @@ PopupWindow {
property ShellScreen screen
property real scaling: ScalingService.getScreenScale(screen)
Connections {
target: ScalingService
function onScaleChanged(screenName, scale) {
if ((screen != null) && (screenName === screen.name)) {
scaling = scale
}
}
}
readonly property int menuWidth: 180
implicitWidth: menuWidth * scaling