diff --git a/sidebar/package/contents/ui/CategoriesPage.qml b/sidebar/package/contents/ui/CategoriesPage.qml --- a/sidebar/package/contents/ui/CategoriesPage.qml +++ b/sidebar/package/contents/ui/CategoriesPage.qml @@ -143,9 +143,10 @@ } } - delegate: Kirigami.AbstractListItem { + delegate: Kirigami.BasicListItem { id: delegate - + icon: model.decoration + label: model.display separatorVisible: false Accessible.role: Accessible.ListItem Accessible.name: model.display @@ -184,23 +185,6 @@ highlighted: categoryView.currentIndex == index Keys.onEnterPressed: clicked(); Keys.onReturnPressed: clicked(); - contentItem: RowLayout { - id: layout - spacing: Kirigami.Settings.tabletMode ? Kirigami.Units.largeSpacing : Kirigami.Units.smallSpacing - Kirigami.Icon { - id: icon - source: model.decoration - Layout.preferredHeight: Layout.preferredWidth - Layout.preferredWidth: Kirigami.Units.iconSizes.smallMedium - Layout.leftMargin: (model.DepthRole-1) * (icon.width + layout.spacing) - } - QQC2.Label { - Layout.fillWidth: true - text: model.display - color: (delegate.highlighted || delegate.checked || (delegate.pressed && delegate.supportsMouseEvents)) ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor - elide: Text.ElideRight - } - } } } }