TrayMenu: fix dynamic scaling
This commit is contained in:
parent
210bbac583
commit
87067f7062
2 changed files with 18 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue