Move HDR toggle into the Basic Settings panel

This commit is contained in:
Cameron Gutman
2026-07-01 21:41:05 -05:00
parent b2d77f48f8
commit 561d824814
+28 -25
View File
@@ -812,9 +812,12 @@ 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.")
} }
Row {
spacing: 5
width: parent.width
CheckBox { CheckBox {
id: vsyncCheck id: vsyncCheck
width: parent.width
hoverEnabled: true hoverEnabled: true
text: qsTr("V-Sync") text: qsTr("V-Sync")
font.pointSize: 12 font.pointSize: 12
@@ -831,7 +834,6 @@ Flickable {
CheckBox { CheckBox {
id: framePacingCheck id: framePacingCheck
width: parent.width
hoverEnabled: true hoverEnabled: true
text: qsTr("Frame pacing") text: qsTr("Frame pacing")
font.pointSize: 12 font.pointSize: 12
@@ -846,6 +848,30 @@ Flickable {
ToolTip.text: qsTr("Frame pacing reduces micro-stutter by delaying frames that come in too early") ToolTip.text: qsTr("Frame pacing reduces micro-stutter by delaying frames that come in too early")
} }
} }
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.")
}
}
} }
GroupBox { GroupBox {
@@ -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