mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-16 16:37:03 +00:00
Remove unnecessary stackpanel nesting
This commit is contained in:
parent
1618854f2c
commit
4a8f512fd4
1 changed files with 55 additions and 57 deletions
|
|
@ -11,63 +11,61 @@
|
||||||
x:Class="Ryujinx.Ava.UI.Views.Input.MotionInputView"
|
x:Class="Ryujinx.Ava.UI.Views.Input.MotionInputView"
|
||||||
x:DataType="viewModels:MotionInputViewModel"
|
x:DataType="viewModels:MotionInputViewModel"
|
||||||
Focusable="True">
|
Focusable="True">
|
||||||
<StackPanel>
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Vertical">
|
<Grid Margin="10,0,10,0" RowDefinitions="Auto,Auto" ColumnDefinitions="Auto,*,45">
|
||||||
<Grid Margin="10,0,10,0" RowDefinitions="Auto,Auto" ColumnDefinitions="Auto,*,45">
|
<TextBlock
|
||||||
<TextBlock
|
Grid.Row="0"
|
||||||
Grid.Row="0"
|
Grid.Column="0"
|
||||||
Grid.Column="0"
|
VerticalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
HorizontalAlignment="Center"
|
Margin="5,0,10,0"
|
||||||
Margin="5,0,10,0"
|
Text="{ext:Locale ControllerSettingsMotionGyroSensitivity}" />
|
||||||
Text="{ext:Locale ControllerSettingsMotionGyroSensitivity}" />
|
<controls:SliderScroll
|
||||||
<controls:SliderScroll
|
Grid.Row="0"
|
||||||
Grid.Row="0"
|
Grid.Column="1"
|
||||||
Grid.Column="1"
|
VerticalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
HorizontalAlignment="Center"
|
Width="150"
|
||||||
Width="150"
|
TickFrequency="1"
|
||||||
TickFrequency="1"
|
IsSnapToTickEnabled="True"
|
||||||
IsSnapToTickEnabled="True"
|
SmallChange="0.01"
|
||||||
SmallChange="0.01"
|
Maximum="100"
|
||||||
Maximum="100"
|
Minimum="0"
|
||||||
Minimum="0"
|
Value="{Binding Sensitivity, Mode=TwoWay}" />
|
||||||
Value="{Binding Sensitivity, Mode=TwoWay}" />
|
<TextBlock
|
||||||
<TextBlock
|
Grid.Row="0"
|
||||||
Grid.Row="0"
|
Grid.Column="2"
|
||||||
Grid.Column="2"
|
Margin="5,0,0,1"
|
||||||
Margin="5,0,0,1"
|
Text="{Binding Sensitivity, StringFormat=\{0:0\}%}" />
|
||||||
Text="{Binding Sensitivity, StringFormat=\{0:0\}%}" />
|
<TextBlock
|
||||||
<TextBlock
|
Grid.Row="1"
|
||||||
Grid.Row="1"
|
Grid.Column="0"
|
||||||
Grid.Column="0"
|
VerticalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
HorizontalAlignment="Center"
|
Margin="5,0,10,0"
|
||||||
Margin="5,0,10,0"
|
Text="{ext:Locale ControllerSettingsMotionGyroDeadzone}" />
|
||||||
Text="{ext:Locale ControllerSettingsMotionGyroDeadzone}" />
|
<controls:SliderScroll
|
||||||
<controls:SliderScroll
|
Grid.Row="1"
|
||||||
Grid.Row="1"
|
Grid.Column="1"
|
||||||
Grid.Column="1"
|
VerticalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
HorizontalAlignment="Center"
|
Width="150"
|
||||||
Width="150"
|
TickFrequency="1"
|
||||||
TickFrequency="1"
|
IsSnapToTickEnabled="True"
|
||||||
IsSnapToTickEnabled="True"
|
SmallChange="0.01"
|
||||||
SmallChange="0.01"
|
Maximum="100"
|
||||||
Maximum="100"
|
Minimum="0"
|
||||||
Minimum="0"
|
Value="{Binding GyroDeadzone, Mode=TwoWay}" />
|
||||||
Value="{Binding GyroDeadzone, Mode=TwoWay}" />
|
<TextBlock
|
||||||
<TextBlock
|
Grid.Row="1"
|
||||||
Grid.Row="1"
|
Grid.Column="2"
|
||||||
Grid.Column="2"
|
Margin="5,0,0,1"
|
||||||
Margin="5,0,0,1"
|
Text="{Binding GyroDeadzone, StringFormat=\{0:0.00\}}" />
|
||||||
Text="{Binding GyroDeadzone, StringFormat=\{0:0.00\}}" />
|
</Grid>
|
||||||
</Grid>
|
<Separator Height="1" Margin="0,0,0,5" />
|
||||||
<Separator Height="1" Margin="0,0,0,5" />
|
<CheckBox Margin="0,5,0,5" HorizontalAlignment="Center" IsChecked="{Binding EnableCemuHookMotion}">
|
||||||
<CheckBox Margin="0,5,0,5" HorizontalAlignment="Center" IsChecked="{Binding EnableCemuHookMotion}">
|
<TextBlock VerticalAlignment="Center" Text="{ext:Locale ControllerSettingsMotionUseCemuhookCompatibleMotion}" />
|
||||||
<TextBlock VerticalAlignment="Center" Text="{ext:Locale ControllerSettingsMotionUseCemuhookCompatibleMotion}" />
|
</CheckBox>
|
||||||
</CheckBox>
|
|
||||||
</StackPanel>
|
|
||||||
<Border Padding="20,10,20,5" BorderBrush="{DynamicResource ThemeControlBorderColor}" BorderThickness="1" CornerRadius="5" HorizontalAlignment="Stretch">
|
<Border Padding="20,10,20,5" BorderBrush="{DynamicResource ThemeControlBorderColor}" BorderThickness="1" CornerRadius="5" HorizontalAlignment="Stretch">
|
||||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
|
||||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal" Margin="0,0,0,7.5">
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal" Margin="0,0,0,7.5">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue