Revert "UI: Allow more freedom changing the Speed value & clamp the visible number to a sane amount of trailing digits"

This reverts commit 796674d9cf03e27c89a4cdebec533720e3548565.
This commit is contained in:
madwind 2025-01-31 23:15:25 +08:00
parent c63ad758e4
commit 9b64bbced8
3 changed files with 4 additions and 5 deletions

View File

@ -25,7 +25,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
[ObservableProperty] private bool _enableLedChanging; [ObservableProperty] private bool _enableLedChanging;
[ObservableProperty] private Color _ledColor; [ObservableProperty] private Color _ledColor;
public string RainbowSpeedText => RainbowSpeed.ToString(CultureInfo.CurrentCulture).Truncate(4, string.Empty); public string RainbowSpeedText => RainbowSpeed.ToString(CultureInfo.CurrentCulture);
public float RainbowSpeed public float RainbowSpeed
{ {

View File

@ -36,14 +36,13 @@
Height="32" Height="32"
Padding="0,-5" Padding="0,-5"
TickFrequency="0.25" TickFrequency="0.25"
LargeChange="1" IsSnapToTickEnabled="True"
SmallChange="0.25"
VerticalAlignment="Center" VerticalAlignment="Center"
Minimum="1" Minimum="1"
Maximum="10" /> Maximum="10" />
<TextBlock Margin="5,0" <TextBlock Margin="5,0"
MinWidth="75" MinWidth="75"
Text="{Binding RainbowSpeedText}" /> Text="{Binding RainbowSpeed}"/>
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal" IsEnabled="{Binding ShowLedColorPicker}"> <StackPanel Orientation="Horizontal" IsEnabled="{Binding ShowLedColorPicker}">
<TextBlock MinWidth="75" MaxWidth="200" Text="{ext:Locale ControllerSettingsLedColor}" /> <TextBlock MinWidth="75" MaxWidth="200" Text="{ext:Locale ControllerSettingsLedColor}" />