-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Added theme-specific background for XAML code errors #3588
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
Conversation
…roperty that returns the respective theme. resolves CommunityToolkit#3545
Thanks winston-de for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
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.
@winston-de Thanks for the PR. Looks great 🚀 🚀
@chingucoding feel free to check it out 😊 |
}; | ||
get => _themeListener.CurrentTheme.Equals(ApplicationTheme.Light) ? | ||
new CssLineStyle() { BackgroundColor = new SolidColorBrush(Color.FromArgb(0x00, 0xFF, 0xD6, 0xD6)) } : | ||
new CssLineStyle() { BackgroundColor = new SolidColorBrush(Color.FromArgb(0x00, 0x6E, 0x00, 0x00)) }; |
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.
Could we use #660000 for dark theme? That way, we would achieve a contrast of 4.5:1 to the darker blue.
Thanks @Kyaa-dost for pinging me on this PR!
@chingucoding |
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 @winston-de , looks good to me!
Hello @Kyaa-dost! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
@msftbot merge this PR once @michael-hawker approves 🚀 🚀 |
Hello @Kyaa-dost! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Thanks @winston-de for jumping in and submitting this fix! 🎉🎉🎉 |
no problem :) |
Fixes #3545
Adds a theme listener field and a read only property that returns the theme-specific error background color to the sample app's Xaml code editor.
PR Type
What kind of change does this PR introduce?
Bugfix
Sample app changes
What is the current behavior?
Quoting from #3545
What is the new behavior?
A different text background is now displayed when dark theme is enabled, making it more readable.

PR Checklist
Please check if your PR fulfills the following requirements: