mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 01:34:46 +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
|
when: root.width < root.height
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: icons
|
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 {
|
AnchorChanges {
|
||||||
target: leftButton
|
target: leftButton
|
||||||
|
|
@ -209,7 +209,7 @@ Item {
|
||||||
when: root.width >= root.height
|
when: root.width >= root.height
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: icons
|
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 {
|
AnchorChanges {
|
||||||
target: leftButton
|
target: leftButton
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue