tabbox: Implement some more VDG feedback for Thumbnail Grid

Use a ToolButton rather than a Button for the close icon to reduce
unnecessary visual weight, and move it outwards so that its frame
touches the inner edge of the selection rectangle. Looks a bit nicer and
less attention-getting.
This commit is contained in:
Nate Graham 2023-05-08 16:46:59 +02:00
parent 07279bf541
commit 059fade8e2

View file

@ -161,11 +161,14 @@ KWin.TabBoxSwitcher {
usesPlasmaTheme: false
}
PlasmaComponents3.Button {
PlasmaComponents3.ToolButton {
id: closeButton
anchors {
right: parent.right
top: parent.top
// Deliberately touch the inner edges of the frame
rightMargin: -columnLayout.anchors.rightMargin
topMargin: -columnLayout.anchors.topMargin
}
visible: model.closeable && typeof tabBox.model.close !== 'undefined' &&
(mouseArea.containsMouse