Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add common theme constants library (Uno.Toolkit.WinUI.Themes.Markup) #437

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

agaldanaw2
Copy link

@agaldanaw2 agaldanaw2 commented Dec 26, 2022

GitHub Issue (If applicable): #389

PR Type

What kind of change does this PR introduce?

  • Feature

What is the new behavior?

Add common theme constants library (Uno.Toolkit.WinUI.Themes.Markup)

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):
#389

@agaldanaw2 agaldanaw2 changed the title Add common theme constants library (Uno.Toolkit.WinUI.Themes.Markup) feat: add common theme constants library (Uno.Toolkit.WinUI.Themes.Markup) Dec 27, 2022

public static class Chip
{
public static class Assist
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make more sense to group by: default/normal vs elevated?

public static class AppBarButton
{
[ResourceKeyDefinition(typeof(Style), "MainCommandStyle", TargetType = typeof(AppBarButton))]
public static ResourceValue<Style> Default => new("MainCommandStyle");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could have keep the original name, and then have a default alias that points to it:

[...] public static Default => Main;
[...] public static Main => new(...);

Comment on lines +12 to +13
<PackageVersion Include="Uno.Themes.WinUI.Markup" Version="2.5.0-dev.3" />
<PackageVersion Include="Uno.WinUI.Markup" Version="4.6.0-dev.14" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these will need to be updated due to breaking changes in Uno.Extensions.Markup. See unoplatform/Uno.Themes/pull/906

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's be sure to update these dependencies

@kazo0
Copy link
Contributor

kazo0 commented Jan 13, 2023

@dansiegel, I feel like we put this aside before the break for some reason but I can't remember. Other than the required changes to update the package references, we can probably get this merged soon, right?


namespace Uno.Toolkit.Themes.Markup
{
public static partial class Theme
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this perhaps be called ToolkitTheme... I feel like calling it Theme would lead to conflicts with the main Theme class for Uno.Themes

@agneszitte agneszitte marked this pull request as draft August 11, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants