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

wilder-portage-prov
Nate Graham 6 years ago
parent adff60f77c
commit 63cd451939
  1. 5
      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

Loading…
Cancel
Save