Add tooltips to buttons and room invite button

This commit is contained in:
miruka
2019-08-22 09:27:26 -04:00
parent 3082c64666
commit 627a186700
10 changed files with 75 additions and 31 deletions

View File

@@ -58,6 +58,7 @@ HTileDelegate {
backgroundColor: "transparent"
padding: sidePane.currentSpacing / 1.5
rightPadding: leftPadding
toolTip.text: collapsed ? qsTr("Expand") : qsTr("Collapse")
onClicked: accountDelegate.toggleCollapse()
visible: opacity > 0

View File

@@ -9,14 +9,16 @@ HRowLayout {
property alias roomFilter: filterField.text
Layout.fillWidth: true
Layout.preferredHeight: theme.baseElementsHeight
Layout.minimumHeight: theme.baseElementsHeight
Layout.maximumHeight: Layout.minimumHeight
HButton {
icon.name: "add-account"
toolTip.text: qsTr("Add another account")
backgroundColor: theme.sidePane.settingsButton.background
onClicked: pageLoader.showPage("SignIn")
Layout.preferredHeight: parent.height
Layout.fillHeight: true
}
HTextField {
@@ -26,7 +28,7 @@ HRowLayout {
bordered: false
Layout.fillWidth: true
Layout.preferredHeight: parent.height
Layout.fillHeight: true
onTextChanged: {
if (window.uiState.sidePaneFilter == text) return