Skip to content

Commit

Permalink
fix: the preview image covers the border when non-integer scale factor
Browse files Browse the repository at this point in the history
  • Loading branch information
zsien authored and tsic404 committed Jul 3, 2024
1 parent 3e4a7ca commit 40c227c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panels/dock/workspaceitem/package/workspaceitem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ AppletItem {
border.color: isCurrent ? D.ColorSelector.selectedBorderColor : D.ColorSelector.unSelectedBorderColor
implicitWidth: frameSize
implicitHeight: isCurrent ? itemSize + 4 : itemSize
color: D.ColorSelector.backgroundColor
color: isCurrent ? undefined : D.ColorSelector.backgroundColor
radius: 3
Image {
anchors.fill: parent
anchors.margins: 1
z: -1
id: workspaceImage
source: screenImage
visible: false
Expand Down

0 comments on commit 40c227c

Please sign in to comment.