mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-07-12 18:03:52 +00:00
Move HDR toggle into the Basic Settings panel
This commit is contained in:
+46
-43
@@ -812,38 +812,64 @@ Flickable {
|
|||||||
ToolTip.text: qsTr("Fullscreen generally provides the best performance, but borderless windowed may work better with features like macOS Spaces, Alt+Tab, screenshot tools, on-screen overlays, etc.")
|
ToolTip.text: qsTr("Fullscreen generally provides the best performance, but borderless windowed may work better with features like macOS Spaces, Alt+Tab, screenshot tools, on-screen overlays, etc.")
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
Row {
|
||||||
id: vsyncCheck
|
spacing: 5
|
||||||
width: parent.width
|
width: parent.width
|
||||||
hoverEnabled: true
|
|
||||||
text: qsTr("V-Sync")
|
CheckBox {
|
||||||
font.pointSize: 12
|
id: vsyncCheck
|
||||||
checked: StreamingPreferences.enableVsync
|
hoverEnabled: true
|
||||||
onCheckedChanged: {
|
text: qsTr("V-Sync")
|
||||||
StreamingPreferences.enableVsync = checked
|
font.pointSize: 12
|
||||||
|
checked: StreamingPreferences.enableVsync
|
||||||
|
onCheckedChanged: {
|
||||||
|
StreamingPreferences.enableVsync = checked
|
||||||
|
}
|
||||||
|
|
||||||
|
ToolTip.delay: 1000
|
||||||
|
ToolTip.timeout: 5000
|
||||||
|
ToolTip.visible: hovered
|
||||||
|
ToolTip.text: qsTr("Disabling V-Sync allows sub-frame rendering latency, but it can display visible tearing")
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolTip.delay: 1000
|
CheckBox {
|
||||||
ToolTip.timeout: 5000
|
id: framePacingCheck
|
||||||
ToolTip.visible: hovered
|
hoverEnabled: true
|
||||||
ToolTip.text: qsTr("Disabling V-Sync allows sub-frame rendering latency, but it can display visible tearing")
|
text: qsTr("Frame pacing")
|
||||||
|
font.pointSize: 12
|
||||||
|
enabled: StreamingPreferences.enableVsync
|
||||||
|
checked: StreamingPreferences.enableVsync && StreamingPreferences.framePacing
|
||||||
|
onCheckedChanged: {
|
||||||
|
StreamingPreferences.framePacing = checked
|
||||||
|
}
|
||||||
|
ToolTip.delay: 1000
|
||||||
|
ToolTip.timeout: 5000
|
||||||
|
ToolTip.visible: hovered
|
||||||
|
ToolTip.text: qsTr("Frame pacing reduces micro-stutter by delaying frames that come in too early")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: framePacingCheck
|
id: enableHdr
|
||||||
width: parent.width
|
width: parent.width
|
||||||
hoverEnabled: true
|
text: qsTr("Enable HDR")
|
||||||
text: qsTr("Frame pacing")
|
font.pointSize: 12
|
||||||
font.pointSize: 12
|
|
||||||
enabled: StreamingPreferences.enableVsync
|
enabled: SystemProperties.supportsHdr
|
||||||
checked: StreamingPreferences.enableVsync && StreamingPreferences.framePacing
|
checked: enabled && StreamingPreferences.enableHdr
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
StreamingPreferences.framePacing = checked
|
StreamingPreferences.enableHdr = checked
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Updating StreamingPreferences.videoCodecConfig is handled above
|
||||||
|
|
||||||
ToolTip.delay: 1000
|
ToolTip.delay: 1000
|
||||||
ToolTip.timeout: 5000
|
ToolTip.timeout: 5000
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
ToolTip.text: qsTr("Frame pacing reduces micro-stutter by delaying frames that come in too early")
|
ToolTip.text: enabled ?
|
||||||
|
qsTr("The stream will be HDR-capable, but some games may require an HDR monitor on your host PC to enable HDR mode.")
|
||||||
|
:
|
||||||
|
qsTr("HDR streaming is not supported on this PC.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1630,29 +1656,6 @@ Flickable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
|
||||||
id: enableHdr
|
|
||||||
width: parent.width
|
|
||||||
text: qsTr("Enable HDR")
|
|
||||||
font.pointSize: 12
|
|
||||||
|
|
||||||
enabled: SystemProperties.supportsHdr
|
|
||||||
checked: enabled && StreamingPreferences.enableHdr
|
|
||||||
onCheckedChanged: {
|
|
||||||
StreamingPreferences.enableHdr = checked
|
|
||||||
}
|
|
||||||
|
|
||||||
// Updating StreamingPreferences.videoCodecConfig is handled above
|
|
||||||
|
|
||||||
ToolTip.delay: 1000
|
|
||||||
ToolTip.timeout: 5000
|
|
||||||
ToolTip.visible: hovered
|
|
||||||
ToolTip.text: enabled ?
|
|
||||||
qsTr("The stream will be HDR-capable, but some games may require an HDR monitor on your host PC to enable HDR mode.")
|
|
||||||
:
|
|
||||||
qsTr("HDR streaming is not supported on this PC.")
|
|
||||||
}
|
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: enableYUV444
|
id: enableYUV444
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|||||||
Reference in New Issue
Block a user