mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-29 10:09:49 +08:00
16 lines
438 B
C#
16 lines
438 B
C#
using MicaSetup.Services;
|
|
using System;
|
|
using System.Windows.Markup;
|
|
using System.Windows.Media;
|
|
|
|
namespace MicaSetup.Design.Markups;
|
|
|
|
[MarkupExtensionReturnType(typeof(FontFamily))]
|
|
public class LocalizedFontFamilyExtension : MarkupExtension
|
|
{
|
|
public override object ProvideValue(IServiceProvider serviceProvider)
|
|
{
|
|
return ServiceManager.GetService<IMuiLanguageService>()?.GetFontFamily() ?? new FontFamily();
|
|
}
|
|
}
|