Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 committed Oct 11, 2023
1 parent be3e716 commit 0b30746
Show file tree
Hide file tree
Showing 16 changed files with 645 additions and 607 deletions.
190 changes: 96 additions & 94 deletions src/library/Uno.Themes.WinUI.Markup/Theme/Button.cs

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions src/library/Uno.Themes.WinUI.Markup/Theme/CalendarDatePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,31 @@ public static partial class Background
[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBackground")]
public static ThemeResourceKey<Brush> Default => new("CalendarDatePickerBackground");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBackgroundDisabled")]
public static ThemeResourceKey<Brush> Disabled => new("CalendarDatePickerBackgroundDisabled");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBackgroundFocused")]
public static ThemeResourceKey<Brush> Focused => new("CalendarDatePickerBackgroundFocused");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBackgroundPointerOver")]
public static ThemeResourceKey<Brush> PointerOver => new("CalendarDatePickerBackgroundPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBackgroundPressed")]
public static ThemeResourceKey<Brush> Pressed => new("CalendarDatePickerBackgroundPressed");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBackgroundDisabled")]
public static ThemeResourceKey<Brush> Disabled => new("CalendarDatePickerBackgroundDisabled");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBackgroundFocused")]
public static ThemeResourceKey<Brush> Focused => new("CalendarDatePickerBackgroundFocused");
}
public static partial class BorderBrush
{
[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBorderBrush")]
public static ThemeResourceKey<Brush> Default => new("CalendarDatePickerBorderBrush");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBorderBrushDisabled")]
public static ThemeResourceKey<Brush> Disabled => new("CalendarDatePickerBorderBrushDisabled");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBorderBrushPointerOver")]
public static ThemeResourceKey<Brush> PointerOver => new("CalendarDatePickerBorderBrushPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBorderBrushPressed")]
public static ThemeResourceKey<Brush> Pressed => new("CalendarDatePickerBorderBrushPressed");

[ResourceKeyDefinition(typeof(Brush), "CalendarDatePickerBorderBrushDisabled")]
public static ThemeResourceKey<Brush> Disabled => new("CalendarDatePickerBorderBrushDisabled");
}
public static partial class Header
{
Expand Down
11 changes: 7 additions & 4 deletions src/library/Uno.Themes.WinUI.Markup/Theme/CalendarView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ public static partial class CalendarView
{
public static partial class Resources
{
[ResourceKeyDefinition(typeof(Brush), "MaterialCalendarBlackoutForeground")]
public static ThemeResourceKey<Brush> CalendarBlackoutForeground => new("MaterialCalendarBlackoutForeground");
public static partial class Calendar
{
[ResourceKeyDefinition(typeof(Brush), "MaterialCalendarBlackoutForeground")]
public static ThemeResourceKey<Brush> BlackoutForeground => new("MaterialCalendarBlackoutForeground");

[ResourceKeyDefinition(typeof(Brush), "MaterialCalendarTodayForeground")]
public static StaticResourceKey<Brush> CalendarTodayForeground => new("MaterialCalendarTodayForeground");
[ResourceKeyDefinition(typeof(Brush), "MaterialCalendarTodayForeground")]
public static StaticResourceKey<Brush> TodayForeground => new("MaterialCalendarTodayForeground");
}
}
public static partial class Styles
{
Expand Down
110 changes: 56 additions & 54 deletions src/library/Uno.Themes.WinUI.Markup/Theme/CheckBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,30 @@ public static partial class CheckBox
{
public static partial class Resources
{
public static partial class CheckArea
{
[ResourceKeyDefinition(typeof(Thickness), "CheckBoxCheckAreaBorderThickness")]
public static ThemeResourceKey<Thickness> BorderThickness => new("CheckBoxCheckAreaBorderThickness");

[ResourceKeyDefinition(typeof(CornerRadius), "CheckBoxCheckAreaCornerRadius")]
public static ThemeResourceKey<CornerRadius> CornerRadius => new("CheckBoxCheckAreaCornerRadius");

[ResourceKeyDefinition(typeof(Thickness), "CheckBoxCheckAreaPadding")]
public static ThemeResourceKey<Thickness> Padding => new("CheckBoxCheckAreaPadding");
}
public static partial class CheckBackgroundFillUnchecked
{
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillCheckedDisabled")]
public static ThemeResourceKey<Brush> CheckedDisabled => new("CheckBoxCheckBackgroundFillCheckedDisabled");
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUnchecked")]
public static ThemeResourceKey<Brush> Default => new("CheckBoxCheckBackgroundFillUnchecked");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUncheckedPointerOver")]
public static ThemeResourceKey<Brush> UncheckedPointerOver => new("CheckBoxCheckBackgroundFillUncheckedPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUncheckedPressed")]
public static ThemeResourceKey<Brush> UncheckedPressed => new("CheckBoxCheckBackgroundFillUncheckedPressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUncheckedDisabled")]
public static ThemeResourceKey<Brush> UncheckedDisabled => new("CheckBoxCheckBackgroundFillUncheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillChecked")]
public static ThemeResourceKey<Brush> CheckedNormal => new("CheckBoxCheckBackgroundFillChecked");
Expand All @@ -28,11 +48,8 @@ public static partial class CheckBackgroundFillUnchecked
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillCheckedPressed")]
public static ThemeResourceKey<Brush> CheckedPressed => new("CheckBoxCheckBackgroundFillCheckedPressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUnchecked")]
public static ThemeResourceKey<Brush> Default => new("CheckBoxCheckBackgroundFillUnchecked");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillIndeterminateDisabled")]
public static ThemeResourceKey<Brush> IndeterminateDisabled => new("CheckBoxCheckBackgroundFillIndeterminateDisabled");
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillCheckedDisabled")]
public static ThemeResourceKey<Brush> CheckedDisabled => new("CheckBoxCheckBackgroundFillCheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillIndeterminate")]
public static ThemeResourceKey<Brush> IndeterminateNormal => new("CheckBoxCheckBackgroundFillIndeterminate");
Expand All @@ -43,19 +60,22 @@ public static partial class CheckBackgroundFillUnchecked
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillIndeterminatePressed")]
public static ThemeResourceKey<Brush> IndeterminatePressed => new("CheckBoxCheckBackgroundFillIndeterminatePressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUncheckedDisabled")]
public static ThemeResourceKey<Brush> UncheckedDisabled => new("CheckBoxCheckBackgroundFillUncheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUncheckedPointerOver")]
public static ThemeResourceKey<Brush> UncheckedPointerOver => new("CheckBoxCheckBackgroundFillUncheckedPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillUncheckedPressed")]
public static ThemeResourceKey<Brush> UncheckedPressed => new("CheckBoxCheckBackgroundFillUncheckedPressed");
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundFillIndeterminateDisabled")]
public static ThemeResourceKey<Brush> IndeterminateDisabled => new("CheckBoxCheckBackgroundFillIndeterminateDisabled");
}
public static partial class CheckBackgroundStrokeUnchecked
{
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeCheckedDisabled")]
public static ThemeResourceKey<Brush> CheckedDisabled => new("CheckBoxCheckBackgroundStrokeCheckedDisabled");
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUnchecked")]
public static ThemeResourceKey<Brush> Default => new("CheckBoxCheckBackgroundStrokeUnchecked");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUncheckedPointerOver")]
public static ThemeResourceKey<Brush> UncheckedPointerOver => new("CheckBoxCheckBackgroundStrokeUncheckedPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUncheckedPressed")]
public static ThemeResourceKey<Brush> UncheckedPressed => new("CheckBoxCheckBackgroundStrokeUncheckedPressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUncheckedDisabled")]
public static ThemeResourceKey<Brush> UncheckedDisabled => new("CheckBoxCheckBackgroundStrokeUncheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeChecked")]
public static ThemeResourceKey<Brush> CheckedNormal => new("CheckBoxCheckBackgroundStrokeChecked");
Expand All @@ -66,11 +86,8 @@ public static partial class CheckBackgroundStrokeUnchecked
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeCheckedPressed")]
public static ThemeResourceKey<Brush> CheckedPressed => new("CheckBoxCheckBackgroundStrokeCheckedPressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUnchecked")]
public static ThemeResourceKey<Brush> Default => new("CheckBoxCheckBackgroundStrokeUnchecked");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeIndeterminateDisabled")]
public static ThemeResourceKey<Brush> IndeterminateDisabled => new("CheckBoxCheckBackgroundStrokeIndeterminateDisabled");
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeCheckedDisabled")]
public static ThemeResourceKey<Brush> CheckedDisabled => new("CheckBoxCheckBackgroundStrokeCheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeIndeterminate")]
public static ThemeResourceKey<Brush> IndeterminateNormal => new("CheckBoxCheckBackgroundStrokeIndeterminate");
Expand All @@ -81,32 +98,14 @@ public static partial class CheckBackgroundStrokeUnchecked
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeIndeterminatePressed")]
public static ThemeResourceKey<Brush> IndeterminatePressed => new("CheckBoxCheckBackgroundStrokeIndeterminatePressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUncheckedDisabled")]
public static ThemeResourceKey<Brush> UncheckedDisabled => new("CheckBoxCheckBackgroundStrokeUncheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUncheckedPointerOver")]
public static ThemeResourceKey<Brush> UncheckedPointerOver => new("CheckBoxCheckBackgroundStrokeUncheckedPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeUncheckedPressed")]
public static ThemeResourceKey<Brush> UncheckedPressed => new("CheckBoxCheckBackgroundStrokeUncheckedPressed");
[ResourceKeyDefinition(typeof(Brush), "CheckBoxCheckBackgroundStrokeIndeterminateDisabled")]
public static ThemeResourceKey<Brush> IndeterminateDisabled => new("CheckBoxCheckBackgroundStrokeIndeterminateDisabled");
}
public static partial class GlyphForegroundChecked
{
[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedDisabled")]
public static ThemeResourceKey<Brush> CheckedDisabled => new("CheckBoxGlyphForegroundCheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedPointerOver")]
public static ThemeResourceKey<Brush> CheckedPointerOver => new("CheckBoxGlyphForegroundCheckedPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedPressed")]
public static ThemeResourceKey<Brush> CheckedPressed => new("CheckBoxGlyphForegroundCheckedPressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundChecked")]
public static ThemeResourceKey<Brush> Default => new("CheckBoxGlyphForegroundChecked");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUncheckedDisabled")]
public static ThemeResourceKey<Brush> UncheckedDisabled => new("CheckBoxGlyphForegroundUncheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUnchecked")]
public static ThemeResourceKey<Brush> UncheckedNormal => new("CheckBoxGlyphForegroundUnchecked");

Expand All @@ -115,20 +114,32 @@ public static partial class GlyphForegroundChecked

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUncheckedPressed")]
public static ThemeResourceKey<Brush> UncheckedPressed => new("CheckBoxGlyphForegroundUncheckedPressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundUncheckedDisabled")]
public static ThemeResourceKey<Brush> UncheckedDisabled => new("CheckBoxGlyphForegroundUncheckedDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedPointerOver")]
public static ThemeResourceKey<Brush> CheckedPointerOver => new("CheckBoxGlyphForegroundCheckedPointerOver");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedPressed")]
public static ThemeResourceKey<Brush> CheckedPressed => new("CheckBoxGlyphForegroundCheckedPressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundCheckedDisabled")]
public static ThemeResourceKey<Brush> CheckedDisabled => new("CheckBoxGlyphForegroundCheckedDisabled");
}
public static partial class GlyphForegroundIndeterminate
{
[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminate")]
public static ThemeResourceKey<Brush> Default => new("CheckBoxGlyphForegroundIndeterminate");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminateDisabled")]
public static ThemeResourceKey<Brush> IndeterminateDisabled => new("CheckBoxGlyphForegroundIndeterminateDisabled");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminatePointerOver")]
public static ThemeResourceKey<Brush> IndeterminatePointerOver => new("CheckBoxGlyphForegroundIndeterminatePointerOver");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminatePressed")]
public static ThemeResourceKey<Brush> IndeterminatePressed => new("CheckBoxGlyphForegroundIndeterminatePressed");

[ResourceKeyDefinition(typeof(Brush), "CheckBoxGlyphForegroundIndeterminateDisabled")]
public static ThemeResourceKey<Brush> IndeterminateDisabled => new("CheckBoxGlyphForegroundIndeterminateDisabled");
}
public static partial class StateCircleFillChecked
{
Expand All @@ -155,15 +166,6 @@ public static partial class StateCircleOpacityPointerOver
[ResourceKeyDefinition(typeof(int), "CheckBoxCharacterSpacing")]
public static ThemeResourceKey<int> CharacterSpacing => new("CheckBoxCharacterSpacing");

[ResourceKeyDefinition(typeof(Thickness), "CheckBoxCheckAreaBorderThickness")]
public static ThemeResourceKey<Thickness> CheckAreaBorderThickness => new("CheckBoxCheckAreaBorderThickness");

[ResourceKeyDefinition(typeof(CornerRadius), "CheckBoxCheckAreaCornerRadius")]
public static ThemeResourceKey<CornerRadius> CheckAreaCornerRadius => new("CheckBoxCheckAreaCornerRadius");

[ResourceKeyDefinition(typeof(Thickness), "CheckBoxCheckAreaPadding")]
public static ThemeResourceKey<Thickness> CheckAreaPadding => new("CheckBoxCheckAreaPadding");

[ResourceKeyDefinition(typeof(double), "CheckBoxCheckAreaSize")]
public static ThemeResourceKey<double> CheckAreaSize => new("CheckBoxCheckAreaSize");

Expand Down
Loading

0 comments on commit 0b30746

Please sign in to comment.