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:
parent
07279bf541
commit
059fade8e2
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue