From e6beb5f6a820e8a12e4383fd326a22b0260f6d24 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Mon, 10 Sep 2018 18:29:41 +0800 Subject: [PATCH] More UI tweaks. --- qml/Setting.qml | 2 ++ qml/component/RoomDrawer.qml | 7 +++++++ qml/form/RoomListForm.qml | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/qml/Setting.qml b/qml/Setting.qml index 017e622..81787e4 100644 --- a/qml/Setting.qml +++ b/qml/Setting.qml @@ -172,6 +172,8 @@ Page { } Button { + Layout.fillWidth: true + text: "Add Account" flat: true highlighted: true diff --git a/qml/component/RoomDrawer.qml b/qml/component/RoomDrawer.qml index cc4668a..ee8be48 100644 --- a/qml/component/RoomDrawer.qml +++ b/qml/component/RoomDrawer.qml @@ -48,6 +48,13 @@ Drawer { text: room && room.canonicalAlias ? room.canonicalAlias : "No Canonical Alias" } + Label { + Layout.fillWidth: true + + horizontalAlignment: Text.AlignHCenter + text: room ? room.memberCount + " Members" : "No Member Count" + } + RowLayout { Layout.fillWidth: true diff --git a/qml/form/RoomListForm.qml b/qml/form/RoomListForm.qml index d134125..7eb4e4e 100644 --- a/qml/form/RoomListForm.qml +++ b/qml/form/RoomListForm.qml @@ -39,7 +39,7 @@ Item { bottomPadding: 0 placeholderText: "Search..." - background: Rectangle { color: MSettings.darkTheme ? "#282828" : "#fafafa" } + background: Rectangle { color: MSettings.darkTheme ? "#303030" : "#fafafa" } Shortcut { sequence: StandardKey.Find @@ -107,7 +107,7 @@ Item { width: parent.width height: 64 - color: MSettings.darkTheme ? "#282828" : "#fafafa" + color: MSettings.darkTheme ? "#303030" : "#fafafa" AutoMouseArea { anchors.fill: parent