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

Removed the old SecondaryAccent resource with updated resource #2098

Merged
merged 1 commit into from
Oct 3, 2020

Conversation

ceterisp
Copy link
Contributor

@ceterisp ceterisp commented Oct 2, 2020

Creating a pull request related to #2080. While I was searching for the resource mentioned in the issue, I couldn't find SecondaryHueMidForegroundBrushColor and SecondaryAccentBrushColor. I updated and removed the rest of the old SecondaryAccent* resources.

Please let me know if I missed anything.

Thank you for letting me work on this issue!

@Keboo
Copy link
Member

Keboo commented Oct 3, 2020

Looks good, thank you.

@Keboo Keboo added this to the 4.0.0 milestone Oct 3, 2020
@Keboo Keboo added the breaking change Items here have breaking API changes. label Oct 3, 2020
@Keboo Keboo merged commit c2abdfb into MaterialDesignInXAML:master Oct 3, 2020
SetSolidColorBrush(resourceDictionary, "SecondaryAccentBrush", theme.SecondaryMid.Color);
SetSolidColorBrush(resourceDictionary, "SecondaryAccentForegroundBrush", theme.SecondaryMid.ForegroundColor ?? theme.SecondaryMid.Color.ContrastingForegroundColor());
SetSolidColorBrush(resourceDictionary, "SecondaryHueMidBrush", theme.SecondaryMid.Color);
SetSolidColorBrush(resourceDictionary, "SecondaryHueMidForegroundBrush", theme.SecondaryMid.ForegroundColor ?? theme.SecondaryMid.Color.ContrastingForegroundColor());

Copy link
Contributor

Choose a reason for hiding this comment

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

@Keboo These lines should be removed, not renamed, since these are already here.

SetSolidColorBrush(resourceDictionary, "SecondaryHueMidBrush", theme.SecondaryMid.Color);
SetSolidColorBrush(resourceDictionary, "SecondaryHueMidForegroundBrush", theme.SecondaryMid.ForegroundColor ?? theme.SecondaryMid.Color.ContrastingForegroundColor());

Copy link
Member

Choose a reason for hiding this comment

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

Yep I have a branch with that too address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Items here have breaking API changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants