Add dynamic font support for the setting window

This commit is contained in:
DB p 2025-04-24 11:08:02 +09:00
parent f50f2ff27c
commit 25f39f6934
2 changed files with 3 additions and 0 deletions

View file

@ -4,6 +4,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using CommunityToolkit.Mvvm.DependencyInjection;
using Flow.Launcher.Core;
using Flow.Launcher.Core.Configuration;
@ -175,6 +176,7 @@ namespace Flow.Launcher
await imageLoadertask;
_mainWindow = new MainWindow();
Current.Resources["SettingWindowFont"] = new FontFamily(_settings.SettingWindowFont);
API.LogInfo(ClassName, "Dependencies Info:{ErrorReporting.DependenciesInfo()}");

View file

@ -13,6 +13,7 @@
MinHeight="600"
d:DataContext="{d:DesignInstance vm:SettingWindowViewModel}"
Closed="OnClosed"
FontFamily="{Binding Settings.SettingWindowFont, Mode=TwoWay}"
Icon="Images\app.ico"
Left="{Binding SettingWindowLeft, Mode=TwoWay}"
Loaded="OnLoaded"