2018-07-18 13:19:28 +00:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
import QtQuick.Controls 2.0
|
|
|
|
import QtQuick.Dialogs 1.2
|
|
|
|
|
|
|
|
import "../../js/Utils.js" as Utils
|
|
|
|
import "../../js/Windows.js" as Windows
|
|
|
|
import "../../components" as MoneroComponents
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: "transparent"
|
|
|
|
height: 1400
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
id: settingsUI
|
|
|
|
property int itemHeight: 60 * scaleRatio
|
|
|
|
Layout.fillWidth: true
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.margins: (isMobile)? 17 : 20
|
|
|
|
anchors.topMargin: 0
|
|
|
|
spacing: 0
|
|
|
|
|
|
|
|
MoneroComponents.CheckBox {
|
|
|
|
visible: !isMobile
|
|
|
|
id: customDecorationsCheckBox
|
|
|
|
checked: persistentSettings.customDecorations
|
|
|
|
onClicked: Windows.setCustomWindowDecorations(checked)
|
|
|
|
text: qsTr("Custom decorations") + translationManager.emptyString
|
|
|
|
}
|
2018-08-05 18:41:03 +00:00
|
|
|
|
|
|
|
MoneroComponents.TextBlock {
|
|
|
|
visible: isMobile
|
|
|
|
font.pixelSize: 14
|
|
|
|
textFormat: Text.RichText
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: qsTr("No Layout options exist yet in mobile mode.") + translationManager.emptyString;
|
|
|
|
}
|
2018-07-18 13:19:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
console.log('SettingsLayout loaded');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|