mirror of https://github.com/KDE/kasts.git
Add "new" label also to queue entries
This commit is contained in:
parent
a8e174739f
commit
61e3af704b
|
@ -37,12 +37,22 @@ Kirigami.SwipeListItem {
|
||||||
spacing: Kirigami.Units.smallSpacing
|
spacing: Kirigami.Units.smallSpacing
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Controls.Label {
|
RowLayout{
|
||||||
text: entry.updated.toLocaleDateString(Qt.locale(), Locale.NarrowFormat) + (entry.enclosure ? ( entry.enclosure.size !== 0 ? " · " + Math.floor(entry.enclosure.size/(1024*1024)) + "MB" : "") : "" )
|
Controls.Label {
|
||||||
Layout.fillWidth: true
|
text: entry.new ? i18n("new") + " ·" : ""
|
||||||
elide: Text.ElideRight
|
font.capitalization: Font.AllUppercase
|
||||||
font: Kirigami.Theme.smallFont
|
color: Kirigami.Theme.highlightColor
|
||||||
opacity: 0.7
|
visible: entry.new
|
||||||
|
opacity: (entry.read) ? 0.4 : 0.7
|
||||||
|
}
|
||||||
|
Controls.Label {
|
||||||
|
id: supertitle
|
||||||
|
text: entry.updated.toLocaleDateString(Qt.locale(), Locale.NarrowFormat) + (entry.enclosure ? ( entry.enclosure.size !== 0 ? " · " + Math.floor(entry.enclosure.size/(1024*1024)) + "MB" : "") : "" )
|
||||||
|
Layout.fillWidth: true
|
||||||
|
elide: Text.ElideRight
|
||||||
|
font: Kirigami.Theme.smallFont
|
||||||
|
opacity: (entry.read) ? 0.4 : 0.7
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
text: entry.title
|
text: entry.title
|
||||||
|
|
Loading…
Reference in New Issue