Commit eab4561e authored by Tanbir Jishan's avatar Tanbir Jishan 💬 Committed by Nate Graham
Browse files

applets/systemtray: Make large spacing consistent with the Task Manager setting

Currently the large spacing setting for the System Tray is different from the large
spacing setting for Task Manager icons. So when both are set to large (e.g. in Tablet
mode) they look out of sync.
parent d567747c
Pipeline #172657 passed with stage
in 7 minutes and 49 seconds
......@@ -57,7 +57,7 @@ ColumnLayout {
},
{
"label": i18nc("@item:inlistbox Icon spacing", "Large"),
"spacing": 4
"spacing": 6
}
]
textRole: "label"
......@@ -71,7 +71,7 @@ ColumnLayout {
switch (cfg_iconSpacing) {
case 1: return 0; // Small
case 2: return 1; // Normal
case 4: return 2; // Large
case 6: return 2; // Large
}
}
......
......@@ -121,7 +121,7 @@ MouseArea {
readonly property int rowsOrColumns: autoSize ? 1 : Math.max(1, Math.min(count, Math.floor(gridThickness / (smallIconSize + PlasmaCore.Units.smallSpacing))))
// Add margins only if the panel is larger than a small icon (to avoid large gaps between tiny icons)
readonly property int cellSpacing: PlasmaCore.Units.smallSpacing * (Kirigami.Settings.tabletMode ? 4 : Plasmoid.configuration.iconSpacing)
readonly property int cellSpacing: PlasmaCore.Units.smallSpacing * (Kirigami.Settings.tabletMode ? 6 : Plasmoid.configuration.iconSpacing)
readonly property int smallSizeCellLength: gridThickness < smallIconSize ? smallIconSize : smallIconSize + cellSpacing
cellHeight: {
......
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