mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-10 11:47:25 -04:00
WizardModeSelection: optional 'Portable mode' feature support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user