2022-07-05 20:06:31 +02:00
|
|
|
<window:StyleableWindow
|
2022-12-29 15:24:05 +01:00
|
|
|
x:Class="Ryujinx.Ava.UI.Windows.SettingsWindow"
|
2022-07-05 20:06:31 +02:00
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-12-29 15:24:05 +01:00
|
|
|
xmlns:window="clr-namespace:Ryujinx.Ava.UI.Windows"
|
2023-01-07 00:35:21 +01:00
|
|
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
|
|
|
xmlns:settings="clr-namespace:Ryujinx.Ava.UI.Views.Settings"
|
2022-12-29 15:24:05 +01:00
|
|
|
xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers"
|
2022-07-05 20:06:31 +02:00
|
|
|
Width="1100"
|
|
|
|
Height="768"
|
|
|
|
MinWidth="800"
|
|
|
|
MinHeight="480"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
x:CompileBindings="True"
|
|
|
|
x:DataType="viewModels:SettingsViewModel"
|
2022-12-05 23:04:18 +01:00
|
|
|
mc:Ignorable="d"
|
|
|
|
Focusable="True">
|
2022-07-05 20:06:31 +02:00
|
|
|
<Design.DataContext>
|
|
|
|
<viewModels:SettingsViewModel />
|
|
|
|
</Design.DataContext>
|
|
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="600">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
2022-07-24 19:38:38 +02:00
|
|
|
<ContentPresenter
|
|
|
|
x:Name="ContentPresenter"
|
2022-07-05 20:06:31 +02:00
|
|
|
Grid.Row="1"
|
|
|
|
IsVisible="False"
|
2022-07-24 19:38:38 +02:00
|
|
|
KeyboardNavigation.IsTabStop="False"/>
|
2022-07-05 20:06:31 +02:00
|
|
|
<Grid Name="Pages" IsVisible="False" Grid.Row="2">
|
2023-01-07 00:35:21 +01:00
|
|
|
<settings:SettingsUIView Name="UiPage" />
|
|
|
|
<settings:SettingsInputView Name="InputPage" />
|
|
|
|
<settings:SettingsHotkeysView Name="HotkeysPage" />
|
|
|
|
<settings:SettingsSystemView Name="SystemPage" />
|
|
|
|
<settings:SettingsCPUView Name="CpuPage" />
|
|
|
|
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
|
|
|
<settings:SettingsAudioView Name="AudioPage" />
|
|
|
|
<settings:SettingsNetworkView Name="NetworkPage" />
|
|
|
|
<settings:SettingsLoggingView Name="LoggingPage" />
|
2022-07-05 20:06:31 +02:00
|
|
|
</Grid>
|
2023-01-12 13:09:32 +01:00
|
|
|
<ui:NavigationView
|
|
|
|
Grid.Row="1"
|
|
|
|
IsSettingsVisible="False"
|
|
|
|
Name="NavPanel"
|
|
|
|
IsBackEnabled="False"
|
|
|
|
PaneDisplayMode="Left"
|
|
|
|
Margin="2,10,10,0"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
OpenPaneLength="200">
|
2022-07-05 20:06:31 +02:00
|
|
|
<ui:NavigationView.MenuItems>
|
2023-01-12 13:09:32 +01:00
|
|
|
<ui:NavigationViewItem
|
|
|
|
IsSelected="True"
|
|
|
|
Content="{locale:Locale SettingsTabGeneral}"
|
|
|
|
Tag="UiPage"
|
|
|
|
Icon="New" />
|
2022-07-05 20:06:31 +02:00
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabInput}"
|
|
|
|
Tag="InputPage"
|
|
|
|
Icon="Games" />
|
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabHotkeys}"
|
|
|
|
Tag="HotkeysPage"
|
|
|
|
Icon="Keyboard" />
|
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabSystem}"
|
|
|
|
Tag="SystemPage"
|
|
|
|
Icon="Settings" />
|
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabCpu}"
|
|
|
|
Tag="CpuPage">
|
|
|
|
<ui:NavigationViewItem.Icon>
|
2023-01-12 13:09:32 +01:00
|
|
|
<ui:FontIcon
|
|
|
|
FontFamily="avares://Ryujinx.Ava/Assets/Fonts#Segoe Fluent Icons"
|
|
|
|
Glyph="{helpers:GlyphValueConverter Chip}" />
|
2022-07-05 20:06:31 +02:00
|
|
|
</ui:NavigationViewItem.Icon>
|
|
|
|
</ui:NavigationViewItem>
|
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabGraphics}"
|
|
|
|
Tag="GraphicsPage"
|
|
|
|
Icon="Image" />
|
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabAudio}"
|
|
|
|
Icon="Audio"
|
|
|
|
Tag="AudioPage" />
|
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabNetwork}"
|
|
|
|
Tag="NetworkPage"
|
|
|
|
Icon="Globe" />
|
|
|
|
<ui:NavigationViewItem
|
|
|
|
Content="{locale:Locale SettingsTabLogging}"
|
|
|
|
Tag="LoggingPage"
|
|
|
|
Icon="Document" />
|
|
|
|
</ui:NavigationView.MenuItems>
|
2023-01-12 13:09:32 +01:00
|
|
|
<ui:NavigationView.Styles>
|
|
|
|
<Style Selector="Grid#PlaceholderGrid">
|
|
|
|
<Setter Property="Height" Value="40" />
|
|
|
|
</Style>
|
|
|
|
</ui:NavigationView.Styles>
|
2022-07-05 20:06:31 +02:00
|
|
|
</ui:NavigationView>
|
2022-12-02 03:31:21 +01:00
|
|
|
<ReversibleStackPanel
|
2022-07-05 20:06:31 +02:00
|
|
|
Grid.Row="2"
|
|
|
|
Margin="10"
|
|
|
|
Spacing="10"
|
|
|
|
Orientation="Horizontal"
|
2022-12-02 03:31:21 +01:00
|
|
|
HorizontalAlignment="Right"
|
2023-01-07 00:35:21 +01:00
|
|
|
ReverseOrder="{Binding IsMacOS}">
|
2023-01-12 13:09:32 +01:00
|
|
|
<Button
|
|
|
|
HotKey="Enter"
|
2022-12-02 03:31:21 +01:00
|
|
|
Classes="accent"
|
2023-01-12 13:09:32 +01:00
|
|
|
Content="{locale:Locale SettingsButtonOk}"
|
2022-12-02 03:31:21 +01:00
|
|
|
Command="{ReflectionBinding OkButton}" />
|
2023-01-12 13:09:32 +01:00
|
|
|
<Button
|
|
|
|
HotKey="Escape"
|
|
|
|
Content="{locale:Locale SettingsButtonCancel}"
|
2022-12-02 03:31:21 +01:00
|
|
|
Command="{ReflectionBinding CancelButton}" />
|
2023-01-12 13:09:32 +01:00
|
|
|
<Button
|
|
|
|
Content="{locale:Locale SettingsButtonApply}"
|
2022-12-02 03:31:21 +01:00
|
|
|
Command="{ReflectionBinding ApplyButton}" />
|
|
|
|
</ReversibleStackPanel>
|
2022-07-05 20:06:31 +02:00
|
|
|
</Grid>
|
|
|
|
</window:StyleableWindow>
|