UI: Allow more freedom changing the Speed value & clamp the visible number to a sane amount of trailing digits
This commit is contained in:
parent
4efe24a3bc
commit
796674d9cf
@ -23198,4 +23198,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -28,7 +28,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);
|
public string RainbowSpeedText => RainbowSpeed.ToString(CultureInfo.CurrentCulture).Truncate(4, string.Empty);
|
||||||
|
|
||||||
public float RainbowSpeed
|
public float RainbowSpeed
|
||||||
{
|
{
|
||||||
|
@ -36,13 +36,14 @@
|
|||||||
Height="32"
|
Height="32"
|
||||||
Padding="0,-5"
|
Padding="0,-5"
|
||||||
TickFrequency="0.25"
|
TickFrequency="0.25"
|
||||||
IsSnapToTickEnabled="True"
|
LargeChange="1"
|
||||||
|
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 RainbowSpeed}"/>
|
Text="{Binding RainbowSpeedText}" />
|
||||||
</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}" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user