Commit 26c66450 authored by Nate Graham's avatar Nate Graham 🔩

[applets/systemtray] Switch to multi-row/column view at higher panel thickness

Right now he system tray displays a two row/column view at 50px, which
makes the two rows or columns feel a bit too squeezed.

This MR increases the threshold by adding some spacing, which changes
the cut-off to a 56px panel. As a result, it doesn't look as squeezed.
parent fed19d43
......@@ -49,7 +49,7 @@ MouseArea {
readonly property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical
readonly property bool autoSize: plasmoid.configuration.scaleIconsToFit
readonly property int cellThickness: root.vertical ? root.width : root.height
readonly property int rowsOrColumns: autoSize ? 1 : Math.max(1, Math.floor(cellThickness / smallIconSize))
readonly property int rowsOrColumns: autoSize ? 1 : Math.max(1, Math.floor(cellThickness / (smallIconSize + PlasmaCore.Units.smallSpacing)))
property alias expanded: dialog.visible
property Item activeApplet
property alias visibleLayout: tasksGrid
......
Markdown is supported
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