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

@ -0,0 +1,3 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="m24 10h-10v-10h-4v10h-10v4h10v10h4v-10h10z"/>
</svg>

After

Width:  |  Height:  |  Size: 150 B

View File

@ -0,0 +1,3 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="m4.908 2.081-2.828 2.828 19.092 19.091 2.828-2.828zm2.121 6.363-3.535-3.535 1.414-1.414 3.535 3.535zm1.731-5.845c1.232.376 2.197 1.341 2.572 2.573.377-1.232 1.342-2.197 2.573-2.573-1.231-.376-2.196-1.34-2.573-2.573-.375 1.232-1.34 2.197-2.572 2.573zm-5.348 6.954c-.498 1.635-1.777 2.914-3.412 3.413 1.635.499 2.914 1.777 3.412 3.411.499-1.634 1.778-2.913 3.412-3.411-1.634-.5-2.913-1.778-3.412-3.413zm9.553-3.165c.872.266 1.553.948 1.819 1.82.266-.872.948-1.554 1.819-1.82-.871-.266-1.553-.948-1.819-1.82-.266.871-.948 1.554-1.819 1.82zm4.426-6.388c-.303.994-1.082 1.772-2.075 2.076.995.304 1.772 1.082 2.077 2.077.303-.994 1.082-1.772 2.074-2.077-.992-.303-1.772-1.082-2.076-2.076z"/>
</svg>

After

Width:  |  Height:  |  Size: 790 B

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")