Skip to content

Commit

Permalink
Added static resource for settings font
Browse files Browse the repository at this point in the history
  • Loading branch information
YourOrdinaryCat committed Jun 28, 2023
1 parent 65acb91 commit 0e452d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Rise Media Player Dev/ResourceDictionaries/CustomStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

<FontFamily x:Key="SettingsIconsFontFamily">ms-appx:///Assets/SettingsIcons.ttf#Settings Fluent Icons</FontFamily>

<!-- Title bar resources -->
<Thickness x:Key="TitleBarIconMargin">0,0,0,0</Thickness>
<BitmapIconSource
Expand Down
8 changes: 4 additions & 4 deletions Rise Media Player Dev/Settings/WindowsBehavioursPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
xmlns:markup="using:Rise.Common.Extensions.Markup"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
mc:Ignorable="d">
<ScrollViewer Padding="48,4,48,0" VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Vertical" Spacing="4">
Expand All @@ -16,14 +16,14 @@
<RepositionThemeTransition IsStaggeringEnabled="False" />
</TransitionCollection>
</StackPanel.ChildrenTransitions>

<Border Margin="0,4,0,0" Style="{StaticResource BorderCardStyle}">
<RelativePanel Margin="0,4,0,0">
<FontIcon
x:Name="WindowsLogo"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontFamily="ms-appx:///Assets/SettingsIcons.ttf#Settings Fluent Icons"
FontFamily="{StaticResource SettingsIconsFontFamily}"
FontSize="56"
Glyph="&#xE336;" />
<StackPanel
Expand Down Expand Up @@ -78,8 +78,8 @@
</muxc:InfoBar>

<labs:SettingsCard
Header="{markup:ResourceHelper Name=OpenRiseOnStartupH}"
Description="{markup:ResourceHelper Name=OpenRiseOnStartup}"
Header="{markup:ResourceHelper Name=OpenRiseOnStartupH}"
HeaderIcon="{ui:FontIcon Glyph=&#xE102;}">
<ToggleSwitch
x:Name="OpenAtStartup"
Expand Down

0 comments on commit 0e452d1

Please sign in to comment.