Skip to content

[Markup] Add common theme constants library (Uno.Toolkit.WinUI.Themes.Markup) #389

Closed
@kazo0

Description

@kazo0

Much like Uno.Themes.WinUI.Markup project, we should have a base Markup library that contains helper classes/properties for the Toolkit Material/Cupertino/etc. styles that are following the shared semantic style naming pattern

Example

public static class Theme
{
	// ...
	public static class Styles
	{
		// ...
		public static class TabBar
		{
			public static Action<IDependencyPropertyBuilder<Style>> Top => StaticResource.Get<Style>("TopTabBarStyle");
			public static Action<IDependencyPropertyBuilder<Style>> Top => StaticResource.Get<Style>("BottomTabBarStyle");
		}
		public static class Chip
		{
			public static class Assist
			{
				public static Action<IDependencyPropertyBuilder<Style>> Default => StaticResource.Get<Style>("AssistChipStyle");
				public static Action<IDependencyPropertyBuilder<Style>> Elevated => StaticResource.Get<Style>("ElevatedAssistChipStyle");

			}
			public static class Input
			{
				public static Action<IDependencyPropertyBuilder<Style>> Default => StaticResource.Get<Style>("InputChipStyle");
				public static Action<IDependencyPropertyBuilder<Style>> Elevated => StaticResource.Get<Style>("ElevatedInputChipStyle");

			}
			public static class Filter
			{
				public static Action<IDependencyPropertyBuilder<Style>> Default => StaticResource.Get<Style>("FilterChipStyle");
				public static Action<IDependencyPropertyBuilder<Style>> Elevated => StaticResource.Get<Style>("ElevatedFilterChipStyle");

			}
			public static class Suggestion
			{
				public static Action<IDependencyPropertyBuilder<Style>> Default => StaticResource.Get<Style>("SuggestionChipStyle");
				public static Action<IDependencyPropertyBuilder<Style>> Elevated => StaticResource.Get<Style>("ElevatedSuggestionChipStyle");

			}
		}
		// ...
	}
	// ...
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions