<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: VDG, Kirigami, mart.<br />Herald added a project: Kirigami.<br />Herald added a subscriber: plasma-devel.<br />ngraham requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D29074">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Right now <tt style="background: #ebebeb; font-size: 13px;">BasicListItem</tt> is quite limited and therefore not very useful.</p>

<p>We have this paradigm *all over the place* of a double-height list item with an<br />
icon, a title, and a smaller/lighter subtitle below it. Right now neither<br />
BasicListItem nor SwipeListItem supports this natively, so wherever we use this,<br />
we have to manufacture it by hand, leading to every implementation looking<br />
inconsistent. That seems like a shame.</p>

<p>This patch addresses that situation by adding support for this paradigm to<br />
<tt style="background: #ebebeb; font-size: 13px;">BasicListItem</tt>, which is given a <tt style="background: #ebebeb; font-size: 13px;">subtitle</tt> property that will display a second<br />
label in a smaller, lighter font below the title label (I did not use level 4<br />
and 5 <tt style="background: #ebebeb; font-size: 13px;">Heading</tt>s because this would result in an appearance change for list<br />
items without subtitles, as the level 4 <tt style="background: #ebebeb; font-size: 13px;">Heading</tt> is larger than the <tt style="background: #ebebeb; font-size: 13px;">Label</tt>).<br />
It is also changed to be allowed to not display an icon, which is more common<br />
with title+subtitle list items.</p>

<p>Then a <tt style="background: #ebebeb; font-size: 13px;">BasicListItem</tt> can be used as the <tt style="background: #ebebeb; font-size: 13px;">contentItem</tt> for <tt style="background: #ebebeb; font-size: 13px;">SwipeListItems</tt>,<br />
producing the desired visual consistency wherever we use either of the list<br />
items.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Test with DDDD. No visual or behavioral changes<br />
Open Kirigami gallery or Discover. No visual changes</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R169 Kirigami</div></div></div><br /><div><strong>BRANCH</strong><div><div>more-capable-BasicListItem (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29074">https://phabricator.kde.org/D29074</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/controls/BasicListItem.qml<br />
src/controls/plugins.qmltypes</div></div></div><br /><div><strong>To: </strong>ngraham, VDG, Kirigami, mart<br /><strong>Cc: </strong>plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, ahiemstra, davidedmundson, mart<br /></div>