Merge branch 'dev'

square-messages
Black Hat 2018-08-05 14:37:23 +08:00
commit cfa7049c5e
2 changed files with 29 additions and 16 deletions

View File

@ -101,26 +101,38 @@ Item {
room: currentRoom room: currentRoom
} }
delegate: MessageDelegate {} delegate: Column {
width: parent.width
spacing: 8
section.property: "section" RowLayout {
section.criteria: ViewSection.FullString readonly property bool sectionVisible: section !== aboveSection
section.delegate: RowLayout {
width: parent.width * 0.6
anchors.right: parent.right
Rectangle { width: parent.width * 0.8
Layout.fillWidth: true visible: sectionVisible
height:2 anchors.horizontalCenter: parent.horizontalCenter
color: Material.accent spacing: 8
Rectangle {
Layout.fillWidth: true
height:2
color: Material.accent
}
Label {
text: section
color: Material.accent
verticalAlignment: Text.AlignVCenter
}
Rectangle {
Layout.fillWidth: true
height:2
color: Material.accent
}
} }
Label { MessageDelegate {}
padding: 4
text: section
color: Material.accent
verticalAlignment: Text.AlignVCenter
}
} }
ScrollBar.vertical: messageListViewScrollBar ScrollBar.vertical: messageListViewScrollBar

View File

@ -31,6 +31,7 @@ Item {
id: searchField id: searchField
width: parent.width width: parent.width
height: 36 height: 36
color: "black"
leftPadding: mini ? 4 : 16 leftPadding: mini ? 4 : 16
topPadding: 0 topPadding: 0
bottomPadding: 0 bottomPadding: 0