Make settings page scrollable and match the app color scheme
This commit is contained in:
parent
33a0188fea
commit
640f47300c
1 changed files with 21 additions and 17 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick 2.9
|
import QtQuick 2.9
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
|
|
||||||
Page {
|
ScrollView {
|
||||||
id: settingsPage
|
id: settingsPage
|
||||||
objectName: "Settings"
|
objectName: "Settings"
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@ Page {
|
||||||
id: basicSettingsGroupBox
|
id: basicSettingsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
title: qsTr("Basic Settings")
|
title: "<font color=\"skyblue\">Basic Settings</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
@ -28,7 +28,8 @@ Page {
|
||||||
id: resFPStitle
|
id: resFPStitle
|
||||||
text: qsTr("Resolution and FPS target")
|
text: qsTr("Resolution and FPS target")
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
|
@ -37,6 +38,7 @@ Page {
|
||||||
text: qsTr("Setting values too high for your device may cause lag or crashing")
|
text: qsTr("Setting values too high for your device may cause lag or crashing")
|
||||||
font.pointSize: 9
|
font.pointSize: 9
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox {
|
ComboBox {
|
||||||
|
|
@ -65,6 +67,7 @@ Page {
|
||||||
text: qsTr("Video bitrate target")
|
text: qsTr("Video bitrate target")
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
|
@ -73,6 +76,7 @@ Page {
|
||||||
text: qsTr("Lower bitrate to reduce stuttering. Raise bitrate to increase image quality.")
|
text: qsTr("Lower bitrate to reduce stuttering. Raise bitrate to increase image quality.")
|
||||||
font.pointSize: 9
|
font.pointSize: 9
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
Slider {
|
Slider {
|
||||||
|
|
@ -97,13 +101,13 @@ Page {
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: fullScreenCheck
|
id: fullScreenCheck
|
||||||
text: qsTr("Stretch video to full-screen")
|
text: "<font color=\"white\">Stretch video to full-screen</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: pipObserverCheck
|
id: pipObserverCheck
|
||||||
text: qsTr("Enable Picture-in-Picture observer mode")
|
text: "<font color=\"white\">Enable Picture-in-Picture observer mode</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -113,7 +117,7 @@ Page {
|
||||||
id: audioSettingsGroupBox
|
id: audioSettingsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
title: qsTr("Audio Settings")
|
title: "<font color=\"skyblue\">Audio Settings</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
@ -122,7 +126,7 @@ Page {
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: surroundSoundCheck
|
id: surroundSoundCheck
|
||||||
text: qsTr("Enable 5.1 surround sound")
|
text: "<font color=\"white\">Enable 5.1 surround sound</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -132,7 +136,7 @@ Page {
|
||||||
id: gamepadSettingsGroupBox
|
id: gamepadSettingsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
title: qsTr("Gamepad Settings")
|
title: "<font color=\"skyblue\">Gamepad Settings</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
@ -141,12 +145,12 @@ Page {
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: multiControllerCheck
|
id: multiControllerCheck
|
||||||
text: qsTr("Multiple controller support")
|
text: "<font color=\"white\">Multiple controller support</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: mouseEmulationCheck
|
id: mouseEmulationCheck
|
||||||
text: qsTr("Mouse emulation via gamepad")
|
text: "<font color=\"white\">Mouse emulation via gamepad</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -156,7 +160,7 @@ Page {
|
||||||
id: onScreenControlsGroupBox
|
id: onScreenControlsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
title: qsTr("On-screen Controls Settings")
|
title: "<font color=\"skyblue\">On-screen Controls Settings</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
@ -165,7 +169,7 @@ Page {
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: onScreenControlsCheck
|
id: onScreenControlsCheck
|
||||||
text: qsTr("Show on-screen controls")
|
text: "<font color=\"white\">Show on-screen controls</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -175,7 +179,7 @@ Page {
|
||||||
id: hostSettingsGroupBox
|
id: hostSettingsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
title: qsTr("Host Settings")
|
title: "<font color=\"skyblue\">Host Settings</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
@ -184,13 +188,13 @@ Page {
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: optimizeGameSettingsCheck
|
id: optimizeGameSettingsCheck
|
||||||
text: qsTr("Optimize Game Settings")
|
text: "<font color=\"white\">Optimize game settings</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: audioPcCheck
|
id: audioPcCheck
|
||||||
text: qsTr("Play audio on PC")
|
text: "<font color=\"white\">Play audio on PC</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -200,7 +204,7 @@ Page {
|
||||||
id: advancedSettingsGroupBox
|
id: advancedSettingsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
title: qsTr("Advanced Settings")
|
title: "<font color=\"skyblue\">Advanced Settings</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
@ -209,7 +213,7 @@ Page {
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: neverDropFramesCheck
|
id: neverDropFramesCheck
|
||||||
text: qsTr("Never Drop Frames")
|
text: "<font color=\"white\">Never drop frames</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue