Merge 212faed4d1
into 1a0a351a15
This commit is contained in:
commit
382d701e37
8 changed files with 4988 additions and 19 deletions
|
@ -711,3 +711,33 @@
|
|||
SOFTWARE.
|
||||
```
|
||||
</details>
|
||||
|
||||
# Fluent UI System Icons (MIT)
|
||||
<details>
|
||||
<summary>See License</summary>
|
||||
|
||||
```
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Microsoft Corporation
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
```
|
||||
</details>
|
||||
|
||||
|
|
BIN
src/Ryujinx/Assets/Fonts/FluentSystemIcons-Resizable.ttf
Normal file
BIN
src/Ryujinx/Assets/Fonts/FluentSystemIcons-Resizable.ttf
Normal file
Binary file not shown.
64
src/Ryujinx/Assets/Fonts/FluentSystemIconsResizable.xaml
Normal file
64
src/Ryujinx/Assets/Fonts/FluentSystemIconsResizable.xaml
Normal file
|
@ -0,0 +1,64 @@
|
|||
<ResourceDictionary xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
||||
xmlns:local="clr-namespace:Ryujinx.Assets.Fonts">
|
||||
|
||||
<FontFamily x:Key="FluentSystemIconsResizable">avares://Ryujinx/Assets/Fonts#FluentSystemIcons-Resizable</FontFamily>
|
||||
|
||||
<!-- This value matches the overridden value for NavigationViewItemOnLeftIconBoxHeight in SettingsWindow.axaml -->
|
||||
<x:Double x:Key="FontIconSize">20</x:Double>
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="New"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.New}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="Games"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.Games}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="Keyboard"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.Keyboard}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="Settings"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.Settings}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="DeveloperBoard"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.DeveloperBoard}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="Image"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.Image}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="MusicNote"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.MusicNote2}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="Globe"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.Globe}" />
|
||||
|
||||
<ui:FontIconSource
|
||||
x:Key="Document"
|
||||
FontFamily="{StaticResource FluentSystemIconsResizable}"
|
||||
FontSize="{StaticResource FontIconSize}"
|
||||
Glyph="{x:Static local:FluentSystemIconsResizable.Document}" />
|
||||
</ResourceDictionary>
|
4867
src/Ryujinx/Assets/Fonts/FluentSystemIconsResizable.xaml.cs
Normal file
4867
src/Ryujinx/Assets/Fonts/FluentSystemIconsResizable.xaml.cs
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
@ -103,7 +103,10 @@
|
|||
<AvaloniaResource Include="UI\**\*.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</AvaloniaResource>
|
||||
<AvaloniaResource Include="Assets\Fonts\SegoeFluentIcons.ttf" />
|
||||
<AvaloniaResource Include="Assets\Fonts\FluentSystemIcons-Resizable.ttf" />
|
||||
<AvaloniaResource Include="Assets\Fonts\FluentSystemIconsResizable.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</AvaloniaResource>
|
||||
<AvaloniaResource Include="Assets\Styles\Themes.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</AvaloniaResource>
|
||||
|
|
|
@ -13,7 +13,6 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||
{
|
||||
{ Glyph.List, char.ConvertFromUtf32((int)Symbol.List) },
|
||||
{ Glyph.Grid, char.ConvertFromUtf32((int)Symbol.ViewAll) },
|
||||
{ Glyph.Chip, char.ConvertFromUtf32(59748) },
|
||||
};
|
||||
|
||||
public GlyphValueConverter(string key)
|
||||
|
|
|
@ -17,7 +17,18 @@
|
|||
WindowStartupLocation="CenterOwner"
|
||||
x:DataType="viewModels:SettingsViewModel"
|
||||
mc:Ignorable="d"
|
||||
Focusable="True">
|
||||
Focusable="True"
|
||||
UseLayoutRounding="True"
|
||||
RenderOptions.TextRenderingMode="Antialias">
|
||||
<window:StyleableWindow.Resources>
|
||||
<ResourceDictionary>
|
||||
<x:Double x:Key="NavigationViewItemOnLeftIconBoxHeight">20</x:Double>
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<MergeResourceInclude Source="/Assets/Fonts/FluentSystemIconsResizable.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</window:StyleableWindow.Resources>
|
||||
<Design.DataContext>
|
||||
<viewModels:SettingsViewModel />
|
||||
</Design.DataContext>
|
||||
|
@ -58,44 +69,39 @@
|
|||
IsSelected="True"
|
||||
Content="{locale:Locale SettingsTabGeneral}"
|
||||
Tag="UiPage"
|
||||
IconSource="New" />
|
||||
IconSource="{StaticResource New}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabInput}"
|
||||
Tag="InputPage"
|
||||
IconSource="Games" />
|
||||
IconSource="{StaticResource Games}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabHotkeys}"
|
||||
Tag="HotkeysPage"
|
||||
IconSource="Keyboard" />
|
||||
IconSource="{StaticResource Keyboard}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabSystem}"
|
||||
Tag="SystemPage"
|
||||
IconSource="Settings" />
|
||||
IconSource="{StaticResource Settings}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabCpu}"
|
||||
Tag="CpuPage">
|
||||
<ui:NavigationViewItem.IconSource>
|
||||
<ui:FontIconSource
|
||||
FontFamily="avares://Ryujinx/Assets/Fonts#Segoe Fluent Icons"
|
||||
Glyph="{helpers:GlyphValueConverter Chip}" />
|
||||
</ui:NavigationViewItem.IconSource>
|
||||
</ui:NavigationViewItem>
|
||||
Tag="CpuPage"
|
||||
IconSource="{StaticResource DeveloperBoard}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabGraphics}"
|
||||
Tag="GraphicsPage"
|
||||
IconSource="Image" />
|
||||
IconSource="{StaticResource Image}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabAudio}"
|
||||
IconSource="Audio"
|
||||
Tag="AudioPage" />
|
||||
Tag="AudioPage"
|
||||
IconSource="{StaticResource MusicNote}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabNetwork}"
|
||||
Tag="NetworkPage"
|
||||
IconSource="Globe" />
|
||||
IconSource="{StaticResource Globe}" />
|
||||
<ui:NavigationViewItem
|
||||
Content="{locale:Locale SettingsTabLogging}"
|
||||
Tag="LoggingPage"
|
||||
IconSource="Document" />
|
||||
IconSource="{StaticResource Document}" />
|
||||
</ui:NavigationView.MenuItems>
|
||||
<ui:NavigationView.Styles>
|
||||
<Style Selector="Grid#PlaceholderGrid">
|
||||
|
|
Loading…
Add table
Reference in a new issue