mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +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 {
|
PlasmaCore.IconItem {
|
||||||
id: icon
|
id: icon
|
||||||
|
readonly property real side: Math.min(button.width, button.height)
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
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
|
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||||
//enabled: button.enabled && button.clickable
|
//enabled: button.enabled && button.clickable
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue