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.
wilder-5.25
Tanbir Jishan 4 years ago committed by Nate Graham
parent d567747c54
commit eab4561e9f
  1. 4
      applets/systemtray/package/contents/ui/ConfigGeneral.qml
  2. 2
      applets/systemtray/package/contents/ui/main.qml

@ -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: {

Loading…
Cancel
Save