From 2d1e9ecd3bef4a336d34ccee48d45b8ec0f1c660 Mon Sep 17 00:00:00 2001 From: DB p Date: Thu, 24 Apr 2025 19:06:24 +0900 Subject: [PATCH] Add ContentControlThemeFontFamily to support dynamic font styling --- Flow.Launcher/App.xaml.cs | 1 + Flow.Launcher/Resources/CustomControlTemplate.xaml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index 606536dad..6a7b892be 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -177,6 +177,7 @@ namespace Flow.Launcher _mainWindow = new MainWindow(); Current.Resources["SettingWindowFont"] = new FontFamily(_settings.SettingWindowFont); + Current.Resources["ContentControlThemeFontFamily"] = new FontFamily(_settings.SettingWindowFont); API.LogInfo(ClassName, "Dependencies Info:{ErrorReporting.DependenciesInfo()}"); diff --git a/Flow.Launcher/Resources/CustomControlTemplate.xaml b/Flow.Launcher/Resources/CustomControlTemplate.xaml index 10d8fb6e7..0e101a0fe 100644 --- a/Flow.Launcher/Resources/CustomControlTemplate.xaml +++ b/Flow.Launcher/Resources/CustomControlTemplate.xaml @@ -18,6 +18,9 @@ + + {DynamicResource SettingWindowFont} + @@ -1360,7 +1363,6 @@ - @@ -1584,6 +1586,7 @@