WizardModeSelection: optional 'Portable mode' feature support

This commit is contained in:
xiphon
2020-07-28 17:46:52 +00:00
parent c137a6ea36
commit 4208b66baf
7 changed files with 76 additions and 13 deletions

View File

@@ -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