From eab4561e9f99a1595b3562fadad151316cb49db0 Mon Sep 17 00:00:00 2001 From: Tanbir Jishan Date: Fri, 6 May 2022 20:18:20 +0000 Subject: [PATCH] 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. --- applets/systemtray/package/contents/ui/ConfigGeneral.qml | 4 ++-- applets/systemtray/package/contents/ui/main.qml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applets/systemtray/package/contents/ui/ConfigGeneral.qml b/applets/systemtray/package/contents/ui/ConfigGeneral.qml index 415215e4e..37f9d5f3a 100644 --- a/applets/systemtray/package/contents/ui/ConfigGeneral.qml +++ b/applets/systemtray/package/contents/ui/ConfigGeneral.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 } } diff --git a/applets/systemtray/package/contents/ui/main.qml b/applets/systemtray/package/contents/ui/main.qml index b0e7506a1..238c2e71b 100644 --- a/applets/systemtray/package/contents/ui/main.qml +++ b/applets/systemtray/package/contents/ui/main.qml @@ -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: {