From 94bcf323b2b7ddfa623668a6741db67af68acfc8 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 13 May 2020 20:23:56 -0400 Subject: [PATCH] Drop the "s" from AccountsBar --- .../{AccountsBar.qml => AccountBar.qml} | 25 ------------------- src/gui/MainPane/MainPane.qml | 6 ++--- 2 files changed, 3 insertions(+), 28 deletions(-) rename src/gui/MainPane/{AccountsBar.qml => AccountBar.qml} (83%) diff --git a/src/gui/MainPane/AccountsBar.qml b/src/gui/MainPane/AccountBar.qml similarity index 83% rename from src/gui/MainPane/AccountsBar.qml rename to src/gui/MainPane/AccountBar.qml index 7b2fd594..d279812c 100644 --- a/src/gui/MainPane/AccountsBar.qml +++ b/src/gui/MainPane/AccountBar.qml @@ -140,28 +140,3 @@ Rectangle { } } } - - // HButton { - // id: settingsButton - // backgroundColor: theme.accountsBar.settingsButtonBackground - // icon.name: "settings" - // toolTip.text: qsTr("Open config folder") - - // onClicked: py.callCoro("get_config_dir", [], Qt.openUrlExternally) - - // Layout.preferredHeight: theme.baseElementsHeight - // } - // HButton { - // id: addAccountButton - // icon.name: "add-account" - // toolTip.text: qsTr("Add another account") - // backgroundColor: theme.accountsBar.addAccountButtonBackground - // onClicked: pageLoader.showPage("AddAccount/AddAccount") - - // Layout.preferredHeight: theme.baseElementsHeight - - // HShortcut { - // sequences: window.settings.keys.addNewAccount - // onActivated: addAccountButton.clicked() - // } - // } diff --git a/src/gui/MainPane/MainPane.qml b/src/gui/MainPane/MainPane.qml index 4ac53479..5d86ddb0 100644 --- a/src/gui/MainPane/MainPane.qml +++ b/src/gui/MainPane/MainPane.qml @@ -10,7 +10,7 @@ HDrawer { background: Rectangle { color: theme.mainPane.background } minimumSize: theme.controls.avatar.size + theme.spacing * 2 - readonly property alias accountsBar: accountsBar + readonly property alias accountBar: accountBar readonly property alias roomList: roomList readonly property alias bottomBar: bottomBar @@ -29,8 +29,8 @@ HDrawer { Layout.fillWidth: true } - AccountsBar { - id: accountsBar + AccountBar { + id: accountBar roomList: roomList Layout.fillWidth: true