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