From 63cd451939774ed0e5dcbe1c833b473cf9a5ed18 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Wed, 29 Jul 2020 16:01:18 -0600 Subject: [PATCH] [applets/systemtray] tiny refactor of compact applet small icon sizing --- applets/systemtray/package/contents/ui/main.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applets/systemtray/package/contents/ui/main.qml b/applets/systemtray/package/contents/ui/main.qml index e46477994..b18a8507c 100644 --- a/applets/systemtray/package/contents/ui/main.qml +++ b/applets/systemtray/package/contents/ui/main.qml @@ -161,6 +161,7 @@ MouseArea { } } readonly property int autoSizeCellLength: thickness / rowsOrColumns + readonly property int smallSizeCellLength: root.smallIconSize + units.smallSpacing readonly property int totalLength: root.vertical ? cellHeight * Math.round(count / rowsOrColumns) : cellWidth * Math.round(count / rowsOrColumns) @@ -172,8 +173,8 @@ MouseArea { implicitHeight: root.vertical ? totalLength : root.height implicitWidth: !root.vertical ? totalLength : root.width - cellHeight: root.vertical && !root.autoSize ? root.smallIconSize + units.smallSpacing : autoSizeCellLength - cellWidth: !root.vertical && !root.autoSize ? root.smallIconSize + units.smallSpacing : autoSizeCellLength + cellHeight: root.vertical && !root.autoSize ? smallSizeCellLength : autoSizeCellLength + cellWidth: !root.vertical && !root.autoSize ? smallSizeCellLength : autoSizeCellLength model: PlasmaCore.SortFilterModel { sourceModel: plasmoid.nativeInterface.systemTrayModel