mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
navigationpanel: Cap width of buttons at 80% of panel
This commit is contained in:
parent
f7c6f6d30f
commit
c4806c6fb5
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ Item {
|
|||
when: root.width < root.height
|
||||
PropertyChanges {
|
||||
target: icons
|
||||
buttonLength: Math.min(PlasmaCore.Units.gridUnit * 10, icons.height * 0.9 / 3)
|
||||
buttonLength: Math.min(PlasmaCore.Units.gridUnit * 10, icons.height * 0.8 / 3)
|
||||
}
|
||||
AnchorChanges {
|
||||
target: leftButton
|
||||
|
|
@ -209,7 +209,7 @@ Item {
|
|||
when: root.width >= root.height
|
||||
PropertyChanges {
|
||||
target: icons
|
||||
buttonLength: Math.min(PlasmaCore.Units.gridUnit * 8, icons.width * 0.9 / 3)
|
||||
buttonLength: Math.min(PlasmaCore.Units.gridUnit * 8, icons.width * 0.8 / 3)
|
||||
}
|
||||
AnchorChanges {
|
||||
target: leftButton
|
||||
|
|
|
|||
Loading…
Reference in a new issue