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

@@ -80,6 +80,10 @@ HRectangle {
height: parent.height
autoExclusive: true
checked: activeButton == modelData
enabled: modelData == "members"
toolTip.text: qsTr(
modelData.charAt(0).toUpperCase() + modelData.slice(1)
)
onClicked: activeButton =
activeButton == modelData ? null : modelData
}

View File

@@ -40,15 +40,29 @@ HColumnLayout {
}
}
HTextField {
id: filterField
placeholderText: qsTr("Filter members")
backgroundColor: theme.sidePane.filterRooms.background
bordered: false
HRowLayout {
Layout.minimumHeight: theme.baseElementsHeight
Layout.maximumHeight: Layout.minimumHeight
onTextChanged: filterLimiter.requestFire()
HTextField {
id: filterField
placeholderText: qsTr("Filter members")
backgroundColor: theme.chat.roomSidePane.filterMembers.background
bordered: false
Layout.fillWidth: true
Layout.preferredHeight: theme.baseElementsHeight
onTextChanged: filterLimiter.requestFire()
Layout.fillWidth: true
Layout.fillHeight: true
}
HButton {
icon.name: "room-send-invite"
iconItem.dimension: parent.height
toolTip.text: qsTr("Invite to this room")
backgroundColor: theme.chat.roomSidePane.inviteButton.background
Layout.fillHeight: true
}
}
}