Commit 63cd4519 authored by Nate Graham's avatar Nate Graham
Browse files

[applets/systemtray] tiny refactor of compact applet small icon sizing

parent adff60f7
...@@ -161,6 +161,7 @@ MouseArea { ...@@ -161,6 +161,7 @@ MouseArea {
} }
} }
readonly property int autoSizeCellLength: thickness / rowsOrColumns 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) readonly property int totalLength: root.vertical ? cellHeight * Math.round(count / rowsOrColumns)
: cellWidth * Math.round(count / rowsOrColumns) : cellWidth * Math.round(count / rowsOrColumns)
...@@ -172,8 +173,8 @@ MouseArea { ...@@ -172,8 +173,8 @@ MouseArea {
implicitHeight: root.vertical ? totalLength : root.height implicitHeight: root.vertical ? totalLength : root.height
implicitWidth: !root.vertical ? totalLength : root.width implicitWidth: !root.vertical ? totalLength : root.width
cellHeight: root.vertical && !root.autoSize ? root.smallIconSize + units.smallSpacing : autoSizeCellLength cellHeight: root.vertical && !root.autoSize ? smallSizeCellLength : autoSizeCellLength
cellWidth: !root.vertical && !root.autoSize ? root.smallIconSize + units.smallSpacing : autoSizeCellLength cellWidth: !root.vertical && !root.autoSize ? smallSizeCellLength : autoSizeCellLength
model: PlasmaCore.SortFilterModel { model: PlasmaCore.SortFilterModel {
sourceModel: plasmoid.nativeInterface.systemTrayModel sourceModel: plasmoid.nativeInterface.systemTrayModel
......
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