Skip to content

Commit

Permalink
feat: add typo resources in lightweight styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyeenvy committed Jul 11, 2023
1 parent 54fc3e1 commit 5e42201
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.UI.Xaml.Media;
using System;
using Microsoft.UI.Text;
using Microsoft.UI.Xaml.Media;
using Uno.Extensions.Markup.Internals;

namespace Uno.Themes.Markup
Expand Down Expand Up @@ -166,6 +168,21 @@ public static class GlyphForeground
[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminateDisabled")]
public static ResourceValue<Brush> IndeterminateDisabled => new("CheckBoxGlyphForegroundIndeterminateDisabled", true);
}

public static class Typo
{
[ResourceKeyDefinition(typeof(FontFamily), "CheckBoxFontFamily")]
public static ResourceValue<FontFamily> FontFamily => new("CheckBoxFontFamily", true);

[ResourceKeyDefinition(typeof(FontWeights), "CheckBoxFontWeight")]
public static ResourceValue<FontWeights> FontWeight => new("CheckBoxFontWeight", true);

[ResourceKeyDefinition(typeof(double), "CheckBoxFontSize")]
public static ResourceValue<double> FontSize => new("CheckBoxFontSize", true);

[ResourceKeyDefinition(typeof(double), "CheckBoxCharacterSpacing")]
public static ResourceValue<double> CharacterSpacing => new("CheckBoxCharacterSpacing", true);
}
}
}
}
Expand Down

0 comments on commit 5e42201

Please sign in to comment.