Commit 66294342 authored by Nicolas Fella's avatar Nicolas Fella

[kcm] Align AvailableAccounts delegate with BasicListItem

We can't use BasicListItem here since we have extra stuff (the badge over the icon).
Make it closer to BasicListItem though, like the subtitle having a different font/opacity
parent e9776b4c
......@@ -62,9 +62,28 @@ ScrollViewKCM {
}
}
}
Controls.Label {
ColumnLayout {
spacing: 0
Layout.fillWidth: true
text: model.displayName + "\n" + model.description;
Layout.alignment: Qt.AlignVCenter
Controls.Label {
Layout.fillWidth: true
text: model.displayName
color: accountDelegate.pressed || accountDelegate.highlighted ? accountDelegate.activeTextColor : accountDelegate.textColor
elide: Text.ElideRight
}
Controls.Label {
Layout.fillWidth: true
text: model.description
color: accountDelegate.pressed || accountDelegate.highlighted ? accountDelegate.activeTextColor : accountDelegate.textColor
elide: Text.ElideRight
font: Kirigami.Theme.smallFont
opacity: 0.7
visible: text.length > 0
}
}
}
onClicked: {
......
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