First UI redesign.

This commit is contained in:
Black Hat
2018-09-02 21:26:42 +08:00
parent 2c10b2272c
commit 64749ba32f
7 changed files with 354 additions and 366 deletions

View File

@@ -18,28 +18,35 @@ Page {
onNewMessage: if (!window.active) matriqueController.showMessage(roomName, content, icon)
}
RowLayout {
Rectangle {
anchors.fill: parent
spacing: 0
RoomListForm {
id: roomListForm
color: MSettings.darkTheme ? "#363636" : "#f3f3f3"
Layout.fillHeight: true
Layout.preferredWidth: MSettings.miniMode ? 80 : page.width * 0.35
Layout.minimumWidth: 80
Layout.maximumWidth: 360
RowLayout {
anchors.fill: parent
listModel: roomListModel
}
spacing: 0
RoomForm {
id: roomForm
RoomListForm {
id: roomListForm
Layout.fillWidth: true
Layout.fillHeight: true
Layout.fillHeight: true
Layout.preferredWidth: MSettings.miniMode ? 64 : page.width * 0.35
Layout.minimumWidth: 64
Layout.maximumWidth: 360
currentRoom: roomListForm.enteredRoom
listModel: roomListModel
}
RoomForm {
id: roomForm
Layout.fillWidth: true
Layout.fillHeight: true
currentRoom: roomListForm.enteredRoom
}
}
}
}