https://bugs.kde.org/show_bug.cgi?id=478081

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WAITINGFORINFO
             Status|REPORTED                    |NEEDSINFO

--- Comment #5 from Nate Graham <n...@kde.org> ---
Porting from Kirigami.IconTitleSubtitle to a raw icon and label item would
lighten the delegates a bit by removing the unused subtitle label. Not sure how
much it would really help though.

Can you test a patch? Apply this to CategoryItem.qml, either in your source
checkout (if you're able to build System Settings from source) or else wherever
that file lives on disk:

diff --git app/sidebar/qml/CategoryItem.qml app/sidebar/qml/CategoryItem.qml
index e8f2f471..5942dcc0 100644
--- app/sidebar/qml/CategoryItem.qml
+++ app/sidebar/qml/CategoryItem.qml
@@ -27,13 +27,18 @@ ItemDelegate {
     contentItem: RowLayout {
         spacing: Kirigami.Units.smallSpacing

-        Kirigami.IconTitleSubtitle {
-            Layout.fillWidth: true
+        Kirigami.Icon {
             Layout.leftMargin: delegate.leadingPadding
-            icon: icon.fromControlsIcon(delegate.icon)
-            title: delegate.text
+            implicitWidth: Kirigami.Units.iconSizes.smallMedium
+            implicitHeight: Kirigami.Units.iconSizes.smallMedium
+            source: delegate.icon.name
             selected: delegate.selected
         }
+        Label {
+            Layout.fillWidth: true
+            text: delegate.text
+            elide: Text.ElideRight
+        }

         Rectangle {
             Layout.alignment: Qt.AlignVCenter


Let me know if it helps at all.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to