Init custom DPI.

This commit is contained in:
Black Hat
2018-11-18 20:08:01 +08:00
parent 2fb563619d
commit a8cbd0a9cd
5 changed files with 54 additions and 4 deletions

View File

@@ -432,10 +432,10 @@ Rectangle {
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
padding: 16
padding: 32
ColumnLayout {
width: main.width
width: main.width - 64
spacing: 0
Switch {
@@ -465,6 +465,32 @@ Rectangle {
onCheckedChanged: MSettings.confirmOnExit = checked
}
RowLayout {
Layout.fillWidth: true
Label {
text: "DPI"
}
Slider {
Layout.fillWidth: true
value: controller.dpi()
from: 100
to: 300
stepSize: 25
snapMode: Slider.SnapAlways
ToolTip {
Material.foreground: "white"
visible: parent.pressed
text: parent.value
}
onMoved: controller.setDpi(value)
}
}
}
}
}