Commit c4806c6f authored by Devin Lin's avatar Devin Lin 🎨
Browse files

navigationpanel: Cap width of buttons at 80% of panel

parent f7c6f6d3
Pipeline #196358 passed with stage
in 1 minute and 8 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment