mirror of https://github.com/KDE/kasts.git
Add "new" label to entry list items
This commit is contained in:
parent
4455545daa
commit
81c2ad90d1
|
@ -34,9 +34,16 @@ Kirigami.SwipeListItem {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
RowLayout{
|
RowLayout{
|
||||||
|
Controls.Label {
|
||||||
|
text: entry.new ? i18n("new") + " ·" : ""
|
||||||
|
font.capitalization: Font.AllUppercase
|
||||||
|
color: Kirigami.Theme.highlightColor
|
||||||
|
visible: entry.new
|
||||||
|
opacity: (entry.read) ? 0.4 : 0.7
|
||||||
|
}
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
Layout.maximumHeight: 0.7 * supertitle.implicitHeight
|
Layout.maximumHeight: 0.8 * supertitle.implicitHeight
|
||||||
Layout.maximumWidth: 0.7 * supertitle.implicitHeight
|
Layout.maximumWidth: 0.8 * supertitle.implicitHeight
|
||||||
source: "source-playlist"
|
source: "source-playlist"
|
||||||
visible: entry.queueStatus
|
visible: entry.queueStatus
|
||||||
opacity: (entry.read) ? 0.4 : 0.7
|
opacity: (entry.read) ? 0.4 : 0.7
|
||||||
|
|
Loading…
Reference in New Issue