We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fee593a commit c8fe3bdCopy full SHA for c8fe3bd
panels/dock/showdesktop/package/showdesktop.qml
@@ -32,8 +32,10 @@ AppletItem {
32
33
Rectangle {
34
property D.Palette lineColor: DockPalette.showDesktopLineColor
35
- implicitWidth: useColumnLayout ? showdesktop.implicitWidth : 1
36
- implicitHeight: useColumnLayout ? 1 : showdesktop.implicitHeight
+ // Use device pixel ratio to ensure the line is always 1 physical pixel regardless of system scaling
+ property real devicePixelRatio: Screen.devicePixelRatio
37
+ implicitWidth: useColumnLayout ? showdesktop.implicitWidth : (1 / devicePixelRatio)
38
+ implicitHeight: useColumnLayout ? (1 / devicePixelRatio) : showdesktop.implicitHeight
39
40
color: D.ColorSelector.lineColor
41
}
0 commit comments