Mark read marker when switching room.

This commit is contained in:
Black Hat
2018-11-02 19:05:15 +08:00
parent d53f7bc9bd
commit 87103fcb19
6 changed files with 52 additions and 24 deletions

View File

@@ -135,21 +135,30 @@ Item {
font.italic: true
}
Label {
RowLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
visible: readMarker === true && index !== 0
text: "And Now"
color: "white"
verticalAlignment: Text.AlignVCenter
leftPadding: 8
rightPadding: 8
topPadding: 4
bottomPadding: 4
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 2
background: Rectangle {
color: MSettings.darkTheme ? "#484848" : "grey"
color: Material.accent
}
Label {
text: "And Now"
color: Material.accent
verticalAlignment: Text.AlignVCenter
}
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 2
color: Material.accent
}
}
}