Add profile button

This commit is contained in:
WilliamWsyHK 2024-05-15 18:41:44 +08:00
parent cdccf89e10
commit 6a3d629c2d
3 changed files with 19 additions and 0 deletions

View File

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

View File

@ -14,6 +14,7 @@ namespace Ryujinx.Ava.UI.Helpers
{ Glyph.List, char.ConvertFromUtf32((int)Symbol.List) },
{ Glyph.Grid, char.ConvertFromUtf32((int)Symbol.ViewAll) },
{ Glyph.Chip, char.ConvertFromUtf32(59748) },
{ Glyph.Profiles, char.ConvertFromUtf32((int)Symbol.People) }
};
public GlyphValueConverter(string key)

View File

@ -173,5 +173,22 @@
VerticalAlignment="Center"
DockPanel.Dock="Right"
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>
</UserControl>