patch gtk, small code cleanup

This commit is contained in:
Luke44565 2024-03-18 18:08:21 -04:00
parent 7761382740
commit 1b0fe01cae
4 changed files with 3 additions and 10 deletions

View file

@ -215,6 +215,8 @@ namespace Ryujinx.UI
_startFullScreen.Active = true; _startFullScreen.Active = true;
} }
ConfigurationState.Instance.UI.UseSystemGameFolders.Value = false;
_showConsole.Active = ConfigurationState.Instance.UI.ShowConsole.Value; _showConsole.Active = ConfigurationState.Instance.UI.ShowConsole.Value;
_showConsole.Visible = ConsoleHelper.SetConsoleWindowStateSupported; _showConsole.Visible = ConsoleHelper.SetConsoleWindowStateSupported;

View file

@ -4,8 +4,6 @@ namespace Ryujinx.Ava.UI.Helpers
{ {
List, List,
Grid, Grid,
Back,
Chip, Chip,
Folder,
} }
} }

View file

@ -13,9 +13,7 @@ namespace Ryujinx.Ava.UI.Helpers
{ {
{ Glyph.List, char.ConvertFromUtf32((int)Symbol.List) }, { Glyph.List, char.ConvertFromUtf32((int)Symbol.List) },
{ Glyph.Grid, char.ConvertFromUtf32((int)Symbol.ViewAll) }, { Glyph.Grid, char.ConvertFromUtf32((int)Symbol.ViewAll) },
{ Glyph.Back, char.ConvertFromUtf32((int)Symbol.Back) },
{ Glyph.Chip, char.ConvertFromUtf32(59748) }, { Glyph.Chip, char.ConvertFromUtf32(59748) },
{ Glyph.Folder, char.ConvertFromUtf32(61739) },
}; };
public GlyphValueConverter(string key) public GlyphValueConverter(string key)

View file

@ -26,12 +26,7 @@
Command="{Binding NavigateBack}" Command="{Binding NavigateBack}"
IsVisible="{Binding FoldersEnabled}" IsVisible="{Binding FoldersEnabled}"
IsEnabled="{Binding IsInFolder}"> IsEnabled="{Binding IsInFolder}">
<ui:FontIcon <ui:SymbolIcon Symbol="Back" />
Margin="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
FontFamily="avares://FluentAvalonia/Fonts#Symbols"
Glyph="{helpers:GlyphValueConverter Back}" />
</Button> </Button>
<Button <Button
Width="40" Width="40"