aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardMenuItem.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-07-28 17:46:52 +0000
committerxiphon <xiphon@protonmail.com>2020-09-22 15:08:18 +0000
commit4208b66baf2b1c403f4388eb4720586ad3406dce (patch)
treea4aa669c42e1227d99858eaf821b975958bf1313 /wizard/WizardMenuItem.qml
parentc137a6ea36040aee20366933935805eff67ae3f8 (diff)
downloadmonzero-gui-4208b66baf2b1c403f4388eb4720586ad3406dce.tar.gz
monzero-gui-4208b66baf2b1c403f4388eb4720586ad3406dce.tar.xz
monzero-gui-4208b66baf2b1c403f4388eb4720586ad3406dce.zip
WizardModeSelection: optional 'Portable mode' feature support
Diffstat (limited to 'wizard/WizardMenuItem.qml')
-rw-r--r--wizard/WizardMenuItem.qml14
1 files changed, 12 insertions, 2 deletions
diff --git a/wizard/WizardMenuItem.qml b/wizard/WizardMenuItem.qml
index febb13f3..a46f56b4 100644
--- a/wizard/WizardMenuItem.qml
+++ b/wizard/WizardMenuItem.qml
@@ -39,6 +39,8 @@ RowLayout {
Layout.fillWidth: true
Layout.bottomMargin: 10
property alias imageIcon: icon.source
+ property bool checkbox: false
+ property alias checked: checkboxItem.checked
property alias headerText: header.text
property alias bodyText: body.text
signal menuClicked();
@@ -48,16 +50,24 @@ RowLayout {
Layout.preferredWidth: 70
Layout.preferredHeight: 70
+ MoneroComponents.CheckBox {
+ id: checkboxItem
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.verticalCenter: parent.verticalCenter
+ toggleOnClick: false
+ visible: rowlayout.checkbox
+ }
+
Image {
id: icon
- visible: !isOpenGL || MoneroComponents.Style.blackTheme
+ visible: !rowlayout.checkbox && (!isOpenGL || MoneroComponents.Style.blackTheme)
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: ""
}
DropShadow {
- visible: isOpenGL && !MoneroComponents.Style.blackTheme
+ visible: !rowlayout.checkbox && (isOpenGL && !MoneroComponents.Style.blackTheme)
anchors.fill: icon
horizontalOffset: 3
verticalOffset: 3