diff options
| author | Emmanuel Hansen <emmausssss@gmail.com> | 2022-07-11 22:25:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-12 00:25:33 +0200 |
| commit | 7d9a5feccbedc32dfeec00478c3a67ffff26dc60 (patch) | |
| tree | c22b5d5eb5535824b4b5e54b137df1cf70c1b5f2 /Ryujinx.Ava/Ui/Windows/CheatWindow.axaml | |
| parent | 14ae4e276f81aa6511fb6d00c8d7b9998a88a1c8 (diff) | |
Avalonia - Couple fixes and improvements (#3451)
* fix updater check crash
* remove line
* reduce cheat window sizes
* enable tiered compilation and r2r
* remove warning on LaunchState
* remove warnings related to tasks
* addressed review
* undo csproj indentation
* fix tabs in axaml file
* remove double line
* remove R2R
Diffstat (limited to 'Ryujinx.Ava/Ui/Windows/CheatWindow.axaml')
| -rw-r--r-- | Ryujinx.Ava/Ui/Windows/CheatWindow.axaml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Ryujinx.Ava/Ui/Windows/CheatWindow.axaml b/Ryujinx.Ava/Ui/Windows/CheatWindow.axaml index 1685ee80..a5a4b0ee 100644 --- a/Ryujinx.Ava/Ui/Windows/CheatWindow.axaml +++ b/Ryujinx.Ava/Ui/Windows/CheatWindow.axaml @@ -7,7 +7,6 @@ xmlns:model="clr-namespace:Ryujinx.Ava.Ui.Models" xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows" mc:Ignorable="d" - SizeToContent="Height" Width="500" MinHeight="500" Height="500" WindowStartupLocation="CenterOwner" MinWidth="500"> @@ -45,6 +44,13 @@ VerticalAlignment="Stretch" Name="CheatsView" MinHeight="300"> + <TreeView.Styles> + <Styles> + <Style Selector="TreeViewItem:empty /template/ ItemsPresenter"> + <Setter Property="IsVisible" Value="False"/> + </Style> + </Styles> + </TreeView.Styles> <TreeView.DataTemplates> <TreeDataTemplate DataType="model:CheatsList" ItemsSource="{Binding}"> <StackPanel HorizontalAlignment="Left" Orientation="Horizontal"> @@ -56,9 +62,9 @@ </StackPanel> </TreeDataTemplate> <DataTemplate x:DataType="model:CheatModel"> - <StackPanel Orientation="Horizontal" HorizontalAlignment="Left"> - <CheckBox IsChecked="{Binding IsEnabled}" MinWidth="20" /> - <TextBlock Text="{Binding CleanName}" /> + <StackPanel Orientation="Horizontal" Margin="0" HorizontalAlignment="Left"> + <CheckBox IsChecked="{Binding IsEnabled}" Padding="0" Margin="5,0" MinWidth="20" /> + <TextBlock Text="{Binding CleanName}" VerticalAlignment="Center" /> </StackPanel> </DataTemplate> </TreeView.DataTemplates> |
