Commit 04b89630 authored by Nate Graham's avatar Nate Graham
Browse files

[applets/systemtray] Set list sizes correctly

1. Use Kirigami, not PlasmaCore, since this is a config window
2. Remove PlasmaCore import now that it's no longer used
3. Set implicitWidth/height on Kirigami.Icon, not width/height
4. Use SmallMedium icon sizes, which is typical for list items like this

(cherry picked from commit e43c766d)
parent e22f0c90
...@@ -22,7 +22,6 @@ import QtQuick 2.5 ...@@ -22,7 +22,6 @@ import QtQuick 2.5
import QtQuick.Controls 2.5 as QQC2 import QtQuick.Controls 2.5 as QQC2
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import org.kde.plasma.core 2.1 as PlasmaCore
import org.kde.kquickcontrols 2.0 as KQC import org.kde.kquickcontrols 2.0 as KQC
import org.kde.kirigami 2.10 as Kirigami import org.kde.kirigami 2.10 as Kirigami
...@@ -72,8 +71,8 @@ ColumnLayout { ...@@ -72,8 +71,8 @@ ColumnLayout {
ListView { ListView {
id: itemsList id: itemsList
property var visibilityColumnWidth: units.gridUnit property var visibilityColumnWidth: Kirigami.Units.gridUnit
property var keySequenceColumnWidth: units.gridUnit property var keySequenceColumnWidth: Kirigami.Units.gridUnit
clip: true clip: true
...@@ -123,8 +122,8 @@ ColumnLayout { ...@@ -123,8 +122,8 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
Kirigami.Icon { Kirigami.Icon {
width: units.iconSizes.small implicitWidth: Kirigami.Units.iconSizes.smallMedium
height: width implicitHeight: Kirigami.Units.iconSizes.smallMedium
source: model.decoration source: model.decoration
} }
QQC2.Label { QQC2.Label {
......
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