mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-24 12:25:45 +00:00
38519f3b9a
* Fix redundancies * Add back elses * Settings Refactor * Fix Disposal functions * Use `ReflectionBinding` instead of redundant funcs * Ac_K suggestions * Update Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update locale keys * Update Ryujinx.Ava/UI/Windows/SettingsWindow.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Views/Settings/SettingsSystemView.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Views/Settings/SettingsSystemView.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Windows/SettingsWindow.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Use block-scoped namespaces * Fix typo * Make `TimeZone` internal again Co-authored-by: Ac_K <Acoustik666@gmail.com> Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
72 lines
No EOL
3.5 KiB
XML
72 lines
No EOL
3.5 KiB
XML
<UserControl
|
|
x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsCPUView"
|
|
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:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
|
mc:Ignorable="d"
|
|
x:CompileBindings="True"
|
|
x:DataType="viewModels:SettingsViewModel">
|
|
<Design.DataContext>
|
|
<viewModels:SettingsViewModel />
|
|
</Design.DataContext>
|
|
<ScrollViewer
|
|
Name="CpuPage"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<Border Classes="settings">
|
|
<StackPanel
|
|
Margin="10"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical"
|
|
Spacing="10">
|
|
<TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuCache}" />
|
|
<StackPanel
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical">
|
|
<CheckBox IsChecked="{Binding EnablePptc}">
|
|
<TextBlock Text="{locale:Locale SettingsTabSystemEnablePptc}"
|
|
ToolTip.Tip="{locale:Locale PptcToggleTooltip}" />
|
|
</CheckBox>
|
|
</StackPanel>
|
|
<Separator Height="1" />
|
|
<TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuMemory}" />
|
|
<StackPanel
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
Text="{locale:Locale SettingsTabSystemMemoryManagerMode}"
|
|
ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
|
|
Width="250" />
|
|
<ComboBox SelectedIndex="{Binding MemoryMode}"
|
|
ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
|
|
HorizontalContentAlignment="Left"
|
|
Width="350">
|
|
<ComboBoxItem
|
|
ToolTip.Tip="{locale:Locale MemoryManagerSoftwareTooltip}">
|
|
<TextBlock
|
|
Text="{locale:Locale SettingsTabSystemMemoryManagerModeSoftware}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem
|
|
ToolTip.Tip="{locale:Locale MemoryManagerHostTooltip}">
|
|
<TextBlock Text="{locale:Locale SettingsTabSystemMemoryManagerModeHost}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem
|
|
ToolTip.Tip="{locale:Locale MemoryManagerUnsafeTooltip}">
|
|
<TextBlock
|
|
Text="{locale:Locale SettingsTabSystemMemoryManagerModeHostUnchecked}" />
|
|
</ComboBoxItem>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</ScrollViewer>
|
|
</UserControl> |