82 lines
1.9 KiB
QML
82 lines
1.9 KiB
QML
|
import QtQuick 2.14
|
||
|
import QtQuick.Controls 2.14
|
||
|
import QtQuick.Layouts 1.13
|
||
|
|
||
|
import StatusQ.Popups 0.1
|
||
|
import StatusQ.Controls 0.1
|
||
|
import StatusQ.Core.Theme 0.1
|
||
|
|
||
|
import utils 1.0
|
||
|
|
||
|
Control {
|
||
|
id: root
|
||
|
|
||
|
property alias airdropEnabled: airdropButton.enabled
|
||
|
property alias retailEnabled: retailButton.enabled
|
||
|
property alias remotelySelfDestructEnabled: remotelySelfDestructButton.enabled
|
||
|
property alias burnEnabled: burnButton.enabled
|
||
|
|
||
|
signal airdropClicked
|
||
|
signal retailClicked
|
||
|
signal remotelySelfDestructClicked
|
||
|
signal burnClicked
|
||
|
|
||
|
height: 61 // by design
|
||
|
spacing: Style.current.padding
|
||
|
contentItem: Item {
|
||
|
anchors.fill: parent
|
||
|
|
||
|
StatusModalDivider {
|
||
|
width: parent.width
|
||
|
anchors.top: parent.top
|
||
|
}
|
||
|
|
||
|
RowLayout {
|
||
|
anchors.centerIn: parent
|
||
|
spacing: root.spacing
|
||
|
|
||
|
StatusFlatButton {
|
||
|
id: airdropButton
|
||
|
|
||
|
icon.name: "airdrop"
|
||
|
text: qsTr("Airdrop")
|
||
|
|
||
|
onClicked: root.airdropClicked()
|
||
|
}
|
||
|
|
||
|
StatusFlatButton {
|
||
|
id: retailButton
|
||
|
|
||
|
icon.name: "token-sale"
|
||
|
text: qsTr("Retail")
|
||
|
|
||
|
onClicked: root.retailClicked()
|
||
|
}
|
||
|
|
||
|
StatusFlatButton {
|
||
|
id: remotelySelfDestructButton
|
||
|
|
||
|
icon.name: "retail"
|
||
|
text: qsTr("Remotely self destruct")
|
||
|
type: StatusBaseButton.Type.Danger
|
||
|
borderColor: "transparent"
|
||
|
|
||
|
onClicked: root.remoteSelfDestructClicked()
|
||
|
}
|
||
|
|
||
|
StatusFlatButton {
|
||
|
id: burnButton
|
||
|
|
||
|
icon.name: "delete"
|
||
|
text: qsTr("Burn")
|
||
|
type: StatusBaseButton.Type.Danger
|
||
|
borderColor: "transparent"
|
||
|
|
||
|
onClicked: root.burnClicked()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|