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

Update samples that use the RichEditBox #524

Merged
merged 3 commits into from
Aug 7, 2020

Conversation

marcelwgn
Copy link
Collaborator

Description

A few changes:

  • Remove code that reapplied rtf when switching focus
  • Switch default color from black to gray

I am not happy with the default foreground being gray, however this is the easy approach to fix the issue with black text on black background in dark theme. Having those depend on the current theme will make the samples definitely more complex, that is why I opted out of doing this for now.

Motivation and Context

Update samples as the recent changes to the RichEditBox control broke them.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@@ -22,7 +22,7 @@
</Grid.ColumnDefinitions>

<muxc:SplitButton x:Name="myColorButton" AutomationProperties.Name="Font color" Padding="0" MinHeight="0" MinWidth="0" VerticalAlignment="Top" Click="myColorButton_Click">
<Rectangle x:Name="CurrentColor" Width="{StaticResource SwatchSize}" Height="{StaticResource SwatchSize}" Fill="Black" Margin="0"/>
<Rectangle x:Name="CurrentColor" Width="{StaticResource SwatchSize}" Height="{StaticResource SwatchSize}" Fill="Gray" Margin="0"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of Gray, could we make the default some obviously obnoxious color like Teal? I'm worried that Gray will make the control look like it's in the Disabled state, but it's not. If we choose an obviously customized color, it'll help indicate that a non-default color has been set.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, gray wasn't a great choice. I've switched to green now as it is one of the colors we had in the selection, that also is fairly visible in both themes, and isn't to aggressive to the eye.

@stmoy stmoy merged commit fa25c5f into microsoft:master Aug 7, 2020
bpulliam pushed a commit that referenced this pull request Feb 1, 2022
* Revert PR #157

* Fix samples

* Switch default to green
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.

2 participants