From 63cc67cb99f726de1b60a8cc0fa007c68a93cc2c Mon Sep 17 00:00:00 2001 From: NotYoojun Date: Fri, 2 Feb 2024 13:31:36 +0800 Subject: [PATCH] NavigationView top nav foreground & FontIconSource --- .../Controls/NavigationView/NavigationView.xaml | 7 ++----- .../iNKORE.UI.WPF.Modern.Controls.csproj | 4 ++-- source/iNKORE.UI.WPF.Modern/Common/FontIconSource.cs | 4 ++-- source/iNKORE.UI.WPF.Modern/iNKORE.UI.WPF.Modern.csproj | 4 ++-- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/source/iNKORE.UI.WPF.Modern.Controls/Controls/NavigationView/NavigationView.xaml b/source/iNKORE.UI.WPF.Modern.Controls/Controls/NavigationView/NavigationView.xaml index 369c21c8..48ffa878 100644 --- a/source/iNKORE.UI.WPF.Modern.Controls/Controls/NavigationView/NavigationView.xaml +++ b/source/iNKORE.UI.WPF.Modern.Controls/Controls/NavigationView/NavigationView.xaml @@ -317,7 +317,7 @@ HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Icon}" - TextElement.Foreground="{TemplateBinding Foreground}" ClipToBounds="False"> + Foreground="{TemplateBinding Foreground}" ClipToBounds="False"> - - - diff --git a/source/iNKORE.UI.WPF.Modern.Controls/iNKORE.UI.WPF.Modern.Controls.csproj b/source/iNKORE.UI.WPF.Modern.Controls/iNKORE.UI.WPF.Modern.Controls.csproj index 3f27a9cb..9731956e 100644 --- a/source/iNKORE.UI.WPF.Modern.Controls/iNKORE.UI.WPF.Modern.Controls.csproj +++ b/source/iNKORE.UI.WPF.Modern.Controls/iNKORE.UI.WPF.Modern.Controls.csproj @@ -1,7 +1,7 @@  - net6.0-windows10.0.18362.0;net462 + net6.0-windows10.0.18362.0;net452 true en-US $(TargetsForTfmSpecificBuildOutput);GetDocumentationFile @@ -78,7 +78,7 @@ - + diff --git a/source/iNKORE.UI.WPF.Modern/Common/FontIconSource.cs b/source/iNKORE.UI.WPF.Modern/Common/FontIconSource.cs index b5ecb30d..39ef71b4 100644 --- a/source/iNKORE.UI.WPF.Modern/Common/FontIconSource.cs +++ b/source/iNKORE.UI.WPF.Modern/Common/FontIconSource.cs @@ -12,7 +12,7 @@ namespace iNKORE.UI.WPF.Modern.Common /// public class FontIconSource : IconSource { - const string c_fontIconSourceDefaultFontFamily = "Segoe MDL2 Assets"; + const string c_fontIconSourceDefaultFontFamily = "Segoe Fluent Icons,Segoe MDL2 Assets,Segoe UI Symbol";//"Segoe MDL2 Assets"; /// /// Initializes a new instance of the class. @@ -51,7 +51,7 @@ public FontFamily FontFamily nameof(FontSize), typeof(double), typeof(FontIconSource), - new PropertyMetadata(20.0)); + new PropertyMetadata(16d)); /// /// Gets or sets the size of the icon glyph. diff --git a/source/iNKORE.UI.WPF.Modern/iNKORE.UI.WPF.Modern.csproj b/source/iNKORE.UI.WPF.Modern/iNKORE.UI.WPF.Modern.csproj index 8c57597e..c66bc7da 100644 --- a/source/iNKORE.UI.WPF.Modern/iNKORE.UI.WPF.Modern.csproj +++ b/source/iNKORE.UI.WPF.Modern/iNKORE.UI.WPF.Modern.csproj @@ -1,7 +1,7 @@  - net6.0-windows10.0.18362.0;net462 + net6.0-windows10.0.18362.0;net452 true true en-US @@ -77,7 +77,7 @@ - +