Improving GUI settings layout

This commit is contained in:
Erimel committed 2026-06-23 00:28:50 -04:00
1 parent ce762ba242
commit 67fbf0faca
2 files changed
+45 -42

No files matched your search

+4 -4
View File
@@ -497,12 +497,12 @@ settings-sidebar-advanced = Advanced
## Output settings
# Some keys have steamvr in them as we switched to output but want to keep existing translations
settings-general-output = Output
settings-general-output-subtitle = Output trackers
settings-general-output_trackers = Output trackers
# Not all translation keys support multiline, only the ones that specify it will actually
# split it in lines (that also means you can split in lines however you want in those).
# The first spaces (not tabs) for indentation will be ignored, just to make the file look nice when writing.
# This one is one of this cases that cares about multilines
settings-general-output-description =
settings-general-output_trackers-description =
Enable or disable specific trackers to output.
Useful for games or apps that only support certain trackers.
settings-general-steamvr-trackers-waist = Waist
@@ -564,7 +564,7 @@ settings-stay_aligned-description = Stay Aligned reduces drift by gradually adju
settings-stay_aligned-setup-label = Setup Stay Aligned
settings-stay_aligned-setup-description = You must complete "Setup Stay Aligned" to enable Stay Aligned.
settings-stay_aligned-enabled-label = Adjust trackers
settings-stay_aligned-hide_yaw_correction-label = Hide adjustment (to compare with no Stay Aligned)
settings-stay_aligned-hide_yaw_correction-label = Hide adjustment (to compare without Stay Aligned)
settings-stay_aligned-general-label = General
settings-stay_aligned-relaxed_poses-label = Relaxed Poses
settings-stay_aligned-relaxed_poses-description = Stay Aligned uses your relaxed poses to keep the trackers aligned. Use "Setup Stay Aligned" to update these poses.
@@ -661,7 +661,7 @@ settings-general-gesture_control-fullResetEnabled = Enable tap to full reset
settings-general-gesture_control-fullResetDelay = Full reset delay
settings-general-gesture_control-fullResetTaps = Taps for full reset
settings-general-gesture_control-fullResetTracker = Full Reset Tracker
settings-general-gesture_control-mountingResetEnabled = Enable tap to perform mounting calibration
settings-general-gesture_control-mountingResetEnabled = Enable tap to mounting reset
settings-general-gesture_control-mountingResetDelay = Mounting calibration delay
settings-general-gesture_control-mountingResetTaps = Taps for mounting calibration
settings-general-gesture_control-mountingResetTracker = Mounting Reset Tracker
@@ -525,24 +525,14 @@ export function GeneralSettings() {
<Typography variant="main-title">
{l10n.getString('settings-general-output')}
</Typography>
<Typography variant="section-title">
{l10n.getString('settings-general-output-subtitle')}
</Typography>
<div className="flex flex-col py-2">
{l10n
.getString('settings-general-output-description')
.split('\n')
.map((line, i) => (
<Typography key={i}>{line}</Typography>
))}
</div>
<div className="flex flex-col pt-4" />
<Typography variant="section-title">
{l10n.getString(
'settings-general-steamvr-trackers-tracker_toggling'
)}
</Typography>
<div className="flex flex-col pt-2 pb-4">
<div className="flex flex-col py-2">
{l10n
.getString(
'settings-general-output-trackers-tracker_toggling-description'
@@ -562,6 +552,18 @@ export function GeneralSettings() {
)}
/>
<div className="flex flex-col pt-4" />
<Typography variant="section-title">
{l10n.getString('settings-general-output_trackers')}
</Typography>
<div className="flex flex-col py-2">
{l10n
.getString('settings-general-output_trackers-description')
.split('\n')
.map((line, i) => (
<Typography key={i}>{line}</Typography>
))}
</div>
<div className="grid grid-cols-2 gap-3">
<CheckBox
variant="toggle"
@@ -662,6 +664,33 @@ export function GeneralSettings() {
)}
/>
</div>
<div className="flex flex-col pt-4" />
<div className="flex flex-col pt-2 pb-1">
<Typography variant="section-title">
{l10n.getString(
'settings-general-fk_settings-velocity_settings'
)}
</Typography>
<div className="pt-2">
<Typography>
{l10n.getString(
'settings-general-fk_settings-velocity_settings-description'
)}
</Typography>
</div>
</div>
<div className="grid sm:grid-cols-1 pb-3">
<CheckBox
variant="toggle"
outlined
control={control}
name="velocitySettings.sendDerivedVelocity"
label={l10n.getString(
'settings-general-fk_settings-velocity_settings-send_derived_velocity'
)}
/>
</div>
</>
</SettingsPagePaneLayout>
<StayAlignedSettings values={getValues()} control={control} />
@@ -1065,32 +1094,6 @@ export function GeneralSettings() {
/>
</div>
<div className="flex flex-col pt-2 pb-1">
<Typography variant="section-title">
{l10n.getString(
'settings-general-fk_settings-velocity_settings'
)}
</Typography>
<div className="pt-2">
<Typography>
{l10n.getString(
'settings-general-fk_settings-velocity_settings-description'
)}
</Typography>
</div>
</div>
<div className="grid sm:grid-cols-1 pb-3">
<CheckBox
variant="toggle"
outlined
control={control}
name="velocitySettings.sendDerivedVelocity"
label={l10n.getString(
'settings-general-fk_settings-velocity_settings-send_derived_velocity'
)}
/>
</div>
{config?.debug && (
<>
<div className="flex flex-col">