Fix "And now" position.

This commit is contained in:
Black Hat 2018-09-23 21:14:12 +08:00
parent 990d7ce192
commit d5fb9327d5
1 changed files with 16 additions and 16 deletions

View File

@ -158,22 +158,6 @@ Item {
} }
} }
Label {
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
background: Rectangle { color: MSettings.darkTheme ? "#484848" : "grey" }
}
MessageDelegate { MessageDelegate {
visible: eventType === "notice" || eventType === "message" || eventType === "image" || eventType === "video" || eventType === "audio" || eventType === "file" visible: eventType === "notice" || eventType === "message" || eventType === "image" || eventType === "video" || eventType === "audio" || eventType === "file"
} }
@ -193,6 +177,22 @@ Item {
color: "grey" color: "grey"
font.italic: true font.italic: true
} }
Label {
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
background: Rectangle { color: MSettings.darkTheme ? "#484848" : "grey" }
}
} }
ScrollBar.vertical: messageListViewScrollBar ScrollBar.vertical: messageListViewScrollBar