We have list items containing icons in multiple places. The size of the icons is not consistent.
Examples from system settings:
Activities KCM:
Implementation uses Kirigami.Units.iconSizes.medium
KWin Scripts KCM:
Implementation uses KPluginSelector (Widgets based)
Baloo KCM:
Implementation uses Kirigami.BasicListItem which uses Kirigami.Units.iconSizes.smallMedium
Krunner KCM:
Implementation uses KPluginSelector (Widgets based)
Mobile wifi KCM:
Implementation uses Kirigami.Units.gridUnit
Accounts KCM with D27681:
Implementation uses Kirigami.Units.iconSizes.large
There are other KCMs that have listviews with icons too, but I focused on those where the list is the central element and thus are quite similar. A similar pattern can also be found in applications.
There are two main sources of inconsistency here. The first is KPluginSelector being widgets-based. A QML port based on Kirigami ListItems is needed anyway for porting all the KCMs.
The second source is that most lists cannot use BasicListItem (which would enforce an icon size) because they use SwipeListItem and build the icon part themselves with varying icon sizes.
Action items:
- Decide on an icon size for BasicListItem
- Make a way to combine BasicListItem and SwipeListItem so we can have an enforced icon size + actions
- Create a QML version of KPluginSelector based on above component