Commit 690149e3 authored by David Redondo's avatar David Redondo 🏎
Browse files

Set a height for the list items

All delgates in all sections will have the same height.
BUG:426210
parent 55f02d5a
......@@ -104,6 +104,7 @@ KCM.SimpleKCM {
id: componentDelegate
readonly property color foregroundColor: ListView.isCurrentItem ? activeTextColor : textColor
KeyNavigation.right: shortcutsList
height: Kirigami.Units.iconSizes.small + 2 * Kirigami.Units.smallSpacing + topPadding + bottomPadding
RowLayout {
Kirigami.Icon {
id: appIcon
......@@ -120,7 +121,7 @@ KCM.SimpleKCM {
opacity: model.pendingDeletion ? 0.3 : 1
}
QQC2.ToolButton {
Layout.preferredHeight: Kirigami.Units.iconSizes.small + Kirigami.Units.largeSpacing
Layout.preferredHeight: Kirigami.Units.iconSizes.small + 2 * Kirigami.Units.smallSpacing
Layout.preferredWidth: Layout.preferredHeight
visible: model.section != i18n("Common Actions") && !exportActive && !model.pendingDeletion
opacity: componentDelegate.containsMouse || componentDelegate.ListView.isCurrentItem ? 1 : 0
......@@ -133,7 +134,7 @@ KCM.SimpleKCM {
}
}
QQC2.ToolButton {
Layout.preferredHeight: Kirigami.Units.iconSizes.small + Kirigami.Units.largeSpacing
Layout.preferredHeight: Kirigami.Units.iconSizes.small + 2 * Kirigami.Units.smallSpacing
Layout.preferredWidth: Layout.preferredHeight
visible: !exportActive && model.pendingDeletion
icon.name: "edit-undo"
......
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