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 new file mode 100644 index 000000000..6ad1787c2 --- /dev/null +++ b/src/library/Uno.Themes.WinUI.Markup/Theme.LightWeight/Themes.LightWeightStyles.CheckBox.cs @@ -0,0 +1,251 @@ +#if WinUI +using Microsoft.UI.Text; +#else +using Windows.UI.Text; +#endif +using Microsoft.UI.Xaml.Media; +using Uno.Extensions.Markup.Internals; +using Microsoft.UI.Xaml; + +namespace Uno.Themes.Markup +{ + public static partial class Theme + { + public static class CheckBox + { + public static class Resources + { + public static class Default + { + public static class Background + { + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundUnchecked")] + public static ResourceValue Unchecked => new("CheckBoxBackgroundUnchecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundUncheckedPointerOver")] + public static ResourceValue UncheckedPointerOver => new("CheckBoxBackgroundUncheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundUncheckedPressed")] + public static ResourceValue UncheckedPressed => new("CheckBoxBackgroundUncheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundUncheckedDisabled")] + public static ResourceValue UncheckedDisabled => new("CheckBoxBackgroundUncheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundChecked")] + public static ResourceValue Checked => new("CheckBoxBackgroundChecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundCheckedPointerOver")] + public static ResourceValue CheckedPointerOver => new("CheckBoxBackgroundCheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundCheckedPressed")] + public static ResourceValue CheckedPressed => new("CheckBoxBackgroundCheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundCheckedDisabled")] + public static ResourceValue CheckedDisabled => new("CheckBoxBackgroundCheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundIndeterminate")] + public static ResourceValue Indeterminate => new("CheckBoxBackgroundIndeterminate", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundIndeterminatePointerOver")] + public static ResourceValue IndeterminatePointerOver => new("CheckBoxBackgroundIndeterminatePointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundIndeterminatePressed")] + public static ResourceValue IndeterminatePressed => new("CheckBoxBackgroundIndeterminatePressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBackgroundIndeterminateDisabled")] + public static ResourceValue IndeterminateDisabled => new("CheckBoxBackgroundIndeterminateDisabled", true); + } + + public static class Foreground + { + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundUnchecked")] + public static ResourceValue Unchecked => new("CheckBoxForegroundUnchecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundUncheckedPointerOver")] + public static ResourceValue UncheckedPointerOver => new("CheckBoxForegroundUncheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundUncheckedPressed")] + public static ResourceValue UncheckedPressed => new("CheckBoxForegroundUncheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundUncheckedDisabled")] + public static ResourceValue UncheckedDisabled => new("CheckBoxForegroundUncheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundChecked")] + public static ResourceValue Checked => new("CheckBoxForegroundChecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundCheckedPointerOver")] + public static ResourceValue CheckedPointerOver => new("CheckBoxForegroundCheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundCheckedPressed")] + public static ResourceValue CheckedPressed => new("CheckBoxForegroundCheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundCheckedDisabled")] + public static ResourceValue CheckedDisabled => new("CheckBoxForegroundCheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundIndeterminate")] + public static ResourceValue Indeterminate => new("CheckBoxForegroundIndeterminate", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundIndeterminatePointerOver")] + public static ResourceValue IndeterminatePointerOver => new("CheckBoxForegroundIndeterminatePointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundIndeterminatePressed")] + public static ResourceValue IndeterminatePressed => new("CheckBoxForegroundIndeterminatePressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxForegroundIndeterminateDisabled")] + public static ResourceValue IndeterminateDisabled => new("CheckBoxForegroundIndeterminateDisabled", true); + } + + public static class BorderBrush + { + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushUnchecked")] + public static ResourceValue Unchecked => new("CheckBoxBorderBrushUnchecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushUncheckedPointerOver")] + public static ResourceValue UncheckedPointerOver => new("CheckBoxBorderBrushUncheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushUncheckedPressed")] + public static ResourceValue UncheckedPressed => new("CheckBoxBorderBrushUncheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushUncheckedDisabled")] + public static ResourceValue UncheckedDisabled => new("CheckBoxBorderBrushUncheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushChecked")] + public static ResourceValue Checked => new("CheckBoxBorderBrushChecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushCheckedPointerOver")] + public static ResourceValue CheckedPointerOver => new("CheckBoxBorderBrushCheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushCheckedPressed")] + public static ResourceValue CheckedPressed => new("CheckBoxBorderBrushCheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushCheckedDisabled")] + public static ResourceValue CheckedDisabled => new("CheckBoxBorderBrushCheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushIndeterminate")] + public static ResourceValue Indeterminate => new("CheckBoxBorderBrushIndeterminate", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushIndeterminatePointerOver")] + public static ResourceValue IndeterminatePointerOver => new("CheckBoxBorderBrushIndeterminatePointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushIndeterminatePressed")] + public static ResourceValue IndeterminatePressed => new("CheckBoxBorderBrushIndeterminatePressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxBorderBrushIndeterminateDisabled")] + public static ResourceValue IndeterminateDisabled => new("CheckBoxBorderBrushIndeterminateDisabled", true); + } + + public static class Glyph + { + public static class Foreground + { + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUnchecked")] + public static ResourceValue Unchecked => new("CheckBoxGlyphForegroundUnchecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUncheckedPointerOver")] + public static ResourceValue UncheckedPointerOver => new("CheckBoxGlyphForegroundUncheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUncheckedPressed")] + public static ResourceValue UncheckedPressed => new("CheckBoxGlyphForegroundUncheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUncheckedDisabled")] + public static ResourceValue UncheckedDisabled => new("CheckBoxGlyphForegroundUncheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundChecked")] + public static ResourceValue Checked => new("CheckBoxGlyphForegroundChecked", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedPointerOver")] + public static ResourceValue CheckedPointerOver => new("CheckBoxGlyphForegroundCheckedPointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedPressed")] + public static ResourceValue CheckedPressed => new("CheckBoxGlyphForegroundCheckedPressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedDisabled")] + public static ResourceValue CheckedDisabled => new("CheckBoxGlyphForegroundCheckedDisabled", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminate")] + public static ResourceValue Indeterminate => new("CheckBoxGlyphForegroundIndeterminate", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminatePointerOver")] + public static ResourceValue IndeterminatePointerOver => new("CheckBoxGlyphForegroundIndeterminatePointerOver", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminatePressed")] + public static ResourceValue IndeterminatePressed => new("CheckBoxGlyphForegroundIndeterminatePressed", true); + + [ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminateDisabled")] + public static ResourceValue IndeterminateDisabled => new("CheckBoxGlyphForegroundIndeterminateDisabled", true); + } + + public static class PathData + { + [ResourceKeyDefinition(typeof(string), "CheckBoxHyphenGlyphPathData")] + public static ResourceValue Hyphen => new("CheckBoxHyphenGlyphPathData", true); + + [ResourceKeyDefinition(typeof(string), "CheckBoxCheckGlyphPathData")] + public static ResourceValue Check => new("CheckBoxCheckGlyphPathData", true); + } + } + + 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); + + [ResourceKeyDefinition(typeof(double), "CheckBoxCharacterSpacing")] + public static ResourceValue CharacterSpacing => new("CheckBoxCharacterSpacing", true); + } + + public static class FocusArea + { + public static class Size + { + [ResourceKeyDefinition(typeof(double), "CheckBoxFocusAreaSize")] + public static ResourceValue Default => new("CheckBoxFocusAreaSize", true); + } + } + + public static class CheckArea + { + public static class Size + { + [ResourceKeyDefinition(typeof(double), "CheckBoxCheckAreaSize")] + public static ResourceValue Default => new("CheckBoxCheckAreaSize", true); + } + + public static class Length + { + [ResourceKeyDefinition(typeof(GridLength), "CheckBoxCheckAreaLength")] + public static ResourceValue Default => new("CheckBoxCheckAreaLength", true); + } + + public static class CornerRadiuses + { + [ResourceKeyDefinition(typeof(CornerRadius), "CheckBoxCheckAreaCornerRadius")] + public static ResourceValue Default => new("CheckBoxCheckAreaCornerRadius", true); + } + + public static class BorderThickness + { + [ResourceKeyDefinition(typeof(Thickness), "CheckBoxCheckAreaBorderThickness")] + public static ResourceValue Default => new("CheckBoxCheckAreaBorderThickness", true); + } + + public static class Padding + { + [ResourceKeyDefinition(typeof(Thickness), "CheckBoxCheckAreaPadding")] + public static ResourceValue Default => new("CheckBoxCheckAreaPadding", true); + } + } + } + } + } + } +}