2018-11-22 00:01:17 +00:00
|
|
|
import QtGraphicalEffects 1.0
|
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.4
|
|
|
|
import QtQuick.Controls.Material 2.0
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Window 2.11
|
2019-02-12 22:47:23 +00:00
|
|
|
import QtQuick.Controls 1.4
|
2018-11-22 00:01:17 +00:00
|
|
|
|
|
|
|
import "../widgets"
|
|
|
|
|
|
|
|
ColumnLayout { // settingsPane
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
|
|
|
|
StackToolbar {
|
|
|
|
text: "Cwtch Settings"
|
|
|
|
aux.visible: false
|
|
|
|
}
|
|
|
|
|
2019-02-12 22:47:23 +00:00
|
|
|
Column {
|
|
|
|
leftPadding: 10
|
|
|
|
spacing: 5
|
|
|
|
|
2018-11-22 00:01:17 +00:00
|
|
|
ScalingLabel {
|
|
|
|
Layout.maximumWidth: parent.width
|
2019-02-12 22:47:23 +00:00
|
|
|
text: "Interface zoom (mostly affects text and button sizes):"
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Slider {
|
|
|
|
id: zoomSlider
|
2019-02-12 22:47:23 +00:00
|
|
|
minimumValue: 0.5
|
2019-02-14 02:53:36 +00:00
|
|
|
maximumValue: 4.0
|
|
|
|
value: gcd.themeScale
|
2019-02-12 22:47:23 +00:00
|
|
|
updateValueWhileDragging: false
|
2019-01-14 19:40:04 +00:00
|
|
|
onValueChanged: {
|
|
|
|
gcd.themeScale = zoomSlider.value
|
|
|
|
}
|
2019-02-14 02:53:36 +00:00
|
|
|
width: 400
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ScalingLabel {
|
|
|
|
text: "Large text"
|
|
|
|
size: 20
|
|
|
|
}
|
|
|
|
|
|
|
|
ScalingLabel{
|
2019-02-12 22:47:23 +00:00
|
|
|
text: "Default size text (scale factor: " + zoomSlider.value + ")"
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ScalingLabel {
|
|
|
|
text: "Small text"
|
|
|
|
size: 8
|
|
|
|
}
|
|
|
|
|
2019-02-12 22:47:23 +00:00
|
|
|
}//end of column with padding
|
2018-11-22 00:01:17 +00:00
|
|
|
|
|
|
|
Component.onCompleted: {
|
2019-02-14 02:53:36 +00:00
|
|
|
zoomSlider.value = gcd.themeScale //Screen.pixelDensity / 3.2 // artistic license. set by erinn. fight me before changing
|
2018-11-22 00:01:17 +00:00
|
|
|
if (zoomSlider.value < zoomSlider.from) zoomSlider.value = zoomSlider.from
|
|
|
|
if (zoomSlider.value > zoomSlider.to) zoomSlider.value = zoomSlider.to
|
|
|
|
}
|
|
|
|
}
|