Change join/create room button icons

This commit is contained in:
miruka
2019-11-09 11:10:00 -04:00
parent 66fe230044
commit 02888eb63d
5 changed files with 10 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ HBox {
onFocusChanged: nameField.forceActiveFocus()
buttonModel: [
{ name: "apply", text: qsTr("Create"), iconName: "apply" },
{ name: "apply", text: qsTr("Create"), iconName: "room-create" },
{ name: "cancel", text: qsTr("Cancel"), iconName: "cancel" },
]

View File

@@ -10,7 +10,7 @@ HBox {
onFocusChanged: roomField.forceActiveFocus()
buttonModel: [
{ name: "apply", text: qsTr("Join"), iconName: "apply",
{ name: "apply", text: qsTr("Join"), iconName: "join",
enabled: Boolean(roomField.text), },
{ name: "cancel", text: qsTr("Cancel"), iconName: "cancel" },
]

View File

@@ -60,7 +60,7 @@ HTileDelegate {
HButton {
id: addChat
iconItem.dimension: 16
icon.name: "add-account" // TODO
icon.name: "add-chat"
backgroundColor: "transparent"
toolTip.text: qsTr("Add new chat")
onClicked: pageLoader.showPage(
@@ -81,7 +81,7 @@ HTileDelegate {
HButton {
id: expand
loading: ! model.data.first_sync_done || ! model.data.profile_updated
iconItem.dimension: 16
iconItem.dimension: addChat.iconItem.dimension
icon.name: "expand"
backgroundColor: "transparent"
toolTip.text: collapsed ? qsTr("Expand") : qsTr("Collapse")