mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-12 03:00:00 +01:00
eeb2af9953
* Fix redundancies * Add back elses * `MainWindow` Refactor * Switch commands to `ReflectionBinding` Not required in Ava 11 * Update Ryujinx.Ava/AppHost.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/AppHost.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/AppHost.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/Views/Main/MainViewControls.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/AppHost.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/AppHost.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/AppHost.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/Views/Main/MainMenuBarView.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/Views/Main/MainViewControls.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Resolve issues * Remove Ava 11 Fix * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Update Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Fix whitespace + other suggestions * Move Vsync colours to `Styles.xaml` * Remove catch all * Use `switch` instead of `if` * Update locale keys * Use block-scoped namespaces * Fix improper Ava api usage then * Static PTC * Fix `GridItemSelectorSize` with `ShowNames` * Update for new About Window * Add back search fix Co-authored-by: Ac_K <Acoustik666@gmail.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com>
176 lines
No EOL
7.8 KiB
XML
176 lines
No EOL
7.8 KiB
XML
<UserControl
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
|
xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers"
|
|
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Ryujinx.Ava.UI.Views.Main.MainViewControls"
|
|
x:CompileBindings="True"
|
|
x:DataType="viewModels:MainWindowViewModel">
|
|
<Design.DataContext>
|
|
<viewModels:MainWindowViewModel />
|
|
</Design.DataContext>
|
|
<DockPanel
|
|
Margin="0,0,0,5"
|
|
HorizontalAlignment="Stretch">
|
|
<Button
|
|
Width="40"
|
|
MinWidth="40"
|
|
Margin="5,2,0,2"
|
|
VerticalAlignment="Stretch"
|
|
Command="{ReflectionBinding SetListMode}"
|
|
IsEnabled="{Binding IsGrid}">
|
|
<ui:FontIcon
|
|
Margin="0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
FontFamily="avares://FluentAvalonia/Fonts#Symbols"
|
|
Glyph="{helpers:GlyphValueConverter List}" />
|
|
</Button>
|
|
<Button
|
|
Width="40"
|
|
MinWidth="40"
|
|
Margin="5,2,5,2"
|
|
VerticalAlignment="Stretch"
|
|
Command="{ReflectionBinding SetGridMode}"
|
|
IsEnabled="{Binding IsList}">
|
|
<ui:FontIcon
|
|
Margin="0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
FontFamily="avares://FluentAvalonia/Fonts#Symbols"
|
|
Glyph="{helpers:GlyphValueConverter Grid}" />
|
|
</Button>
|
|
<TextBlock
|
|
Margin="10,0"
|
|
VerticalAlignment="Center"
|
|
Text="{locale:Locale IconSize}"
|
|
ToolTip.Tip="{locale:Locale IconSizeTooltip}" />
|
|
<Slider
|
|
Width="150"
|
|
Height="35"
|
|
Margin="5,-10,5,0"
|
|
VerticalAlignment="Center"
|
|
IsSnapToTickEnabled="True"
|
|
Maximum="4"
|
|
Minimum="1"
|
|
TickFrequency="1"
|
|
ToolTip.Tip="{locale:Locale IconSizeTooltip}"
|
|
Value="{Binding GridSizeScale}" />
|
|
<CheckBox
|
|
Margin="0"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding ShowNames, Mode=TwoWay}"
|
|
IsVisible="{Binding IsGrid}">
|
|
<TextBlock Margin="5,3,0,0" Text="{locale:Locale CommonShowNames}" />
|
|
</CheckBox>
|
|
<TextBox
|
|
Name="SearchBox"
|
|
MinWidth="200"
|
|
Margin="5,0,5,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
DockPanel.Dock="Right"
|
|
KeyUp="SearchBox_OnKeyUp"
|
|
Text="{Binding SearchText}"
|
|
Watermark="{locale:Locale MenuSearch}" />
|
|
<ui:DropDownButton
|
|
Width="150"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Content="{Binding SortName}"
|
|
DockPanel.Dock="Right">
|
|
<ui:DropDownButton.Flyout>
|
|
<Flyout Placement="Bottom">
|
|
<StackPanel
|
|
Margin="0"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical">
|
|
<StackPanel>
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale CommonFavorite}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedByFavorite, Mode=OneTime}"
|
|
Tag="Favorite" />
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale GameListHeaderApplication}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedByTitle, Mode=OneTime}"
|
|
Tag="Title" />
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale GameListHeaderDeveloper}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedByDeveloper, Mode=OneTime}"
|
|
Tag="Developer" />
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale GameListHeaderTimePlayed}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedByTimePlayed, Mode=OneTime}"
|
|
Tag="TotalTimePlayed" />
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale GameListHeaderLastPlayed}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedByLastPlayed, Mode=OneTime}"
|
|
Tag="LastPlayed" />
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale GameListHeaderFileExtension}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedByType, Mode=OneTime}"
|
|
Tag="FileType" />
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale GameListHeaderFileSize}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedBySize, Mode=OneTime}"
|
|
Tag="FileSize" />
|
|
<RadioButton
|
|
Checked="Sort_Checked"
|
|
Content="{locale:Locale GameListHeaderPath}"
|
|
GroupName="Sort"
|
|
IsChecked="{Binding IsSortedByPath, Mode=OneTime}"
|
|
Tag="Path" />
|
|
</StackPanel>
|
|
<Border
|
|
Width="60"
|
|
Height="2"
|
|
Margin="5"
|
|
HorizontalAlignment="Stretch"
|
|
BorderBrush="White"
|
|
BorderThickness="0,1,0,0">
|
|
<Separator Height="0" HorizontalAlignment="Stretch" />
|
|
</Border>
|
|
<RadioButton
|
|
Checked="Order_Checked"
|
|
Content="{locale:Locale OrderAscending}"
|
|
GroupName="Order"
|
|
IsChecked="{Binding IsAscending, Mode=OneTime}"
|
|
Tag="Ascending" />
|
|
<RadioButton
|
|
Checked="Order_Checked"
|
|
Content="{locale:Locale OrderDescending}"
|
|
GroupName="Order"
|
|
IsChecked="{Binding !IsAscending, Mode=OneTime}"
|
|
Tag="Descending" />
|
|
</StackPanel>
|
|
</Flyout>
|
|
</ui:DropDownButton.Flyout>
|
|
</ui:DropDownButton>
|
|
<TextBlock
|
|
Margin="10,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Right"
|
|
Text="{locale:Locale CommonSort}" />
|
|
</DockPanel>
|
|
</UserControl> |