1
0

qml: background flatbuttons within pages

This commit is contained in:
Sander van Grieken
2023-03-03 15:50:13 +01:00
parent b16fb5088b
commit ba888fc9fa
3 changed files with 59 additions and 40 deletions

View File

@@ -108,12 +108,14 @@ Pane {
Layout.fillWidth: true
Layout.preferredHeight: 1
}
FlatButton {
Layout.minimumWidth: implicitWidth
// icon.source: '../../icons/warning.png'
// icon.color: 'transparent'
text: channeldetails.frozenForSending ? qsTr('Unfreeze') : qsTr('Freeze')
onClicked: channeldetails.freezeForSending()
Pane {
background: Rectangle { color: Material.dialogColor }
padding: 0
FlatButton {
Layout.minimumWidth: implicitWidth
text: channeldetails.frozenForSending ? qsTr('Unfreeze') : qsTr('Freeze')
onClicked: channeldetails.freezeForSending()
}
}
}
@@ -143,12 +145,14 @@ Pane {
Layout.fillWidth: true
Layout.preferredHeight: 1
}
FlatButton {
Layout.minimumWidth: implicitWidth
// icon.source: '../../icons/warning.png'
// icon.color: 'transparent'
text: channeldetails.frozenForReceiving ? qsTr('Unfreeze') : qsTr('Freeze')
onClicked: channeldetails.freezeForReceiving()
Pane {
background: Rectangle { color: Material.dialogColor }
padding: 0
FlatButton {
Layout.minimumWidth: implicitWidth
text: channeldetails.frozenForReceiving ? qsTr('Unfreeze') : qsTr('Freeze')
onClicked: channeldetails.freezeForReceiving()
}
}
}