1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import Theme 1.0
import QFlipper 1.0
Item {
id: container
implicitWidth: 318
implicitHeight: control.implicitHeight + verticalPadding * 2
readonly property int horizontalPadding: Math.floor((container.implicitWidth - control.implicitWidth) / 2)
readonly property int verticalPadding: 10
property alias installRadioAction: installRadioAction
property alias installFusAction: installFusAction
ColumnLayout {
id: control
spacing: 10
x: horizontalPadding
y: verticalPadding
TransparentLabel {
color: Theme.color.lightorange2
text: qsTr("Developer Mode")
}
SmallButtonRed {
action: installRadioAction
Layout.fillWidth: true
icon.source: "qrc:/assets/gfx/symbolic/restore-symbolic.svg"
icon.width: 18
icon.height: 20
ToolTip {
visible: parent.hovered
text: qsTr("Install a custom wireless stack. WARNING! This may result in a non-functional Flipper!")
implicitWidth: 250
}
}
SmallButtonRed {
action: installFusAction
Layout.fillWidth: true
icon.source: "qrc:/assets/gfx/symbolic/restore-symbolic.svg"
icon.width: 18
icon.height: 20
ToolTip {
visible: parent.hovered
text: qsTr("Install a custom FUS firmware. !!MEGA WARNING!! It WILL result in encryption keys loss!")
implicitWidth: 250
}
}
Action {
id: installRadioAction
text: qsTr("Install wireless fw")
}
Action {
id: installFusAction
text: qsTr("Install FUS firmware")
enabled: Backend.deviceState && Backend.deviceState.isRecoveryMode
}
}
}
|