From 4668b99247944a60b1ce135b5e86f699f9484d33 Mon Sep 17 00:00:00 2001 From: "NVENTIVE\\vy.nguyen" Date: Wed, 12 Jul 2023 12:35:25 -0400 Subject: [PATCH] a --- .../Themes.LightWeightStyles.CheckBox.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/library/Uno.Themes.WinUI.Markup/Theme.LightWeight/Themes.LightWeightStyles.CheckBox.cs b/src/library/Uno.Themes.WinUI.Markup/Theme.LightWeight/Themes.LightWeightStyles.CheckBox.cs index 7c81e972e..373c8fecc 100644 --- a/src/library/Uno.Themes.WinUI.Markup/Theme.LightWeight/Themes.LightWeightStyles.CheckBox.cs +++ b/src/library/Uno.Themes.WinUI.Markup/Theme.LightWeight/Themes.LightWeightStyles.CheckBox.cs @@ -1,5 +1,8 @@ -using System; +#if WinUI using Microsoft.UI.Text; +#else +using Windows.UI.Text; +#endif using Microsoft.UI.Xaml.Media; using Uno.Extensions.Markup.Internals; @@ -173,10 +176,13 @@ public static class Typo { [ResourceKeyDefinition(typeof(FontFamily), "CheckBoxFontFamily")] public static ResourceValue FontFamily => new("CheckBoxFontFamily", true); - +#if WinUI [ResourceKeyDefinition(typeof(FontWeights), "CheckBoxFontWeight")] public static ResourceValue FontWeight => new("CheckBoxFontWeight", true); - +#else + [ResourceKeyDefinition(typeof(FontWeight), "CheckBoxFontWeight")] + public static ResourceValue FontWeight => new("CheckBoxFontWeight", true); +#endif [ResourceKeyDefinition(typeof(double), "CheckBoxFontSize")] public static ResourceValue FontSize => new("CheckBoxFontSize", true);