-
Notifications
You must be signed in to change notification settings - Fork 36
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
Replace BaseTheme with AppStyles #167
Conversation
Thanks @HobDev! I really like this approach! Could you also submit a PR to our docs, adding this? I think a lot of developers would find this really helpful too! It doesn't look like we have any documentation on theming, so I can see two ways you could approach this problem:
Once you have a PR open for the docs, I'll merge this PR 🙌 (I've added the
pending documentation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @HobDev! Just a few recommendations to keep the color constants (I would put them in AppStyles.cs)
samples/CommunityToolkit.Maui.Markup.Sample/Pages/Base/BaseContentPage.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Pages/NewsDetailPage.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Pages/NewsDetailPage.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Pages/NewsDetailPage.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Pages/NewsDetailPage.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Pages/SettingsPage.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Pages/SettingsPage.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/ViewModels/NewsDetailViewModel.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Views/News/StoryDataTemplate.cs
Outdated
Show resolved
Hide resolved
samples/CommunityToolkit.Maui.Markup.Sample/Views/News/StoryDataTemplate.cs
Outdated
Show resolved
Hide resolved
I am happy to provide the docs for how to style an application given I should have done so with the previous PR. |
@bijington Thank you for the help. So I need not work on the docs as you are going to write it. |
@brminnick Thank you for the review. I made all colors |
I have added a PR at MicrosoftDocs/CommunityToolkit#189 strangely I can't seem to assign you as a reviewer @brminnick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @HobDev!!
And thank you @bijington for folding this into the docs! It'll be super helpful for devs in the future 💯
Description of Change
As AppThemeBinding is available now I removed the old way of supporting Themes. Instead I use AddAppThemeBinding in the Styles. The changes are in the Sample app only.
Linked Issues
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PRAdditional information