This commit is contained in:
WilliamWsyHK 2024-09-20 07:55:45 +08:00 committed by GitHub
commit 785cc34787
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 0 deletions

View file

@ -5,5 +5,6 @@ namespace Ryujinx.Ava.UI.Helpers
List, List,
Grid, Grid,
Chip, Chip,
Profiles
} }
} }

View file

@ -14,6 +14,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.Chip, char.ConvertFromUtf32(59748) }, { Glyph.Chip, char.ConvertFromUtf32(59748) },
{ Glyph.Profiles, char.ConvertFromUtf32((int)Symbol.People) }
}; };
public GlyphValueConverter(string key) public GlyphValueConverter(string key)

View file

@ -173,5 +173,22 @@
VerticalAlignment="Center" VerticalAlignment="Center"
DockPanel.Dock="Right" DockPanel.Dock="Right"
Text="{locale:Locale CommonSort}" /> Text="{locale:Locale CommonSort}" />
<Button
Width="40"
MinWidth="40"
Margin="5,2,5,2"
HorizontalAlignment="Right"
VerticalAlignment="Stretch"
Command="{Binding ManageProfiles}"
IsEnabled="{Binding EnableNonGameRunningControls}"
DockPanel.Dock="Right"
ToolTip.Tip="{locale:Locale OpenProfileManagerTooltip}">
<ui:FontIcon
Margin="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
FontFamily="avares://FluentAvalonia/Fonts#Symbols"
Glyph="{helpers:GlyphValueConverter Profiles}" />
</Button>
</DockPanel> </DockPanel>
</UserControl> </UserControl>