mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
taskpanel: Also add margins when the buttons are on the side (landscape)
Otherwise they look rather grotesque
This commit is contained in:
parent
81a9b81e26
commit
edcf70c263
1 changed files with 2 additions and 1 deletions
|
|
@ -66,9 +66,10 @@ Item {
|
|||
}
|
||||
PlasmaCore.IconItem {
|
||||
id: icon
|
||||
readonly property real side: Math.min(button.width, button.height)
|
||||
anchors {
|
||||
fill: parent
|
||||
margins: button.width < button.height ? 0 : Math.round((parent.height - parent.height * iconSizeFactor * 0.6) / 2)
|
||||
margins: Math.round((side - side * iconSizeFactor * 0.6) / 2)
|
||||
}
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
//enabled: button.enabled && button.clickable
|
||||
|
|
|
|||
Loading…
Reference in a new issue