effects/overview: Correct size of active virtual desktop highlight outline
The focus outline that highlights the active virtual desktop in the Overview effect, as well as the half-transparent outlines that are around the other virtual desktops, cover 2 pixels on every side of every virtual desktop thumbnail. This is because an invisible rectangle is used that has the same size as the thumbnail and has a colored border, but borders are always drawn on the inside of QML rectangles, so content in the thumbnail is covered up. Therefore, the width of the rectangle has to be slightly adjusted to account for the thickness of the border. BUG: 450963 FIXED-IN: 5.27
This commit is contained in:
parent
612099a31d
commit
1f1e67f90b
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ Item {
|
|||
Rectangle {
|
||||
readonly property bool active: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || mouseArea.containsPress || bar.selectedDesktop === delegate.desktop)
|
||||
anchors.fill: parent
|
||||
anchors.margins: -border.width
|
||||
radius: 3
|
||||
color: "transparent"
|
||||
border.width: 2
|
||||
|
|
Loading…
Reference in a new issue