-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Color picker wpf #37149
base: main
Are you sure you want to change the base?
Color picker wpf #37149
Conversation
<StackPanel | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
AutomationProperties.LiveSetting="Assertive" | ||
AutomationProperties.Name="{x:Static p:Resources.Copied_to_clipboard}" | ||
Orientation="Horizontal"> | ||
<ui:SymbolIcon | ||
<TextBlock | ||
FontFamily="Segoe Fluent Icons, Segoe MDL2 Assets" |
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.
Tip: never hardcode values like this. This is super sensitive to typos and other reasons for failure. Use a FontIcon instead :)
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.
There is no FontIcon in .net WPF.
x:Name="OKButton" | ||
Grid.Row="9" | ||
Grid.ColumnSpan="4" | ||
Margin="0,32,0,0" | ||
HorizontalAlignment="Stretch" | ||
Appearance="Primary" | ||
Background="{DynamicResource {x:Static SystemColors.AccentColorBrushKey}}" |
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.
Is it possible to use {StaticResource}
with a value from WinUI Gallery?
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.
We don't use WinUI but .net WPF.
src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml
Outdated
Show resolved
Hide resolved
src/modules/colorPicker/ColorPickerUI/Controls/ColorFormatControl.xaml
Outdated
Show resolved
Hide resolved
First image on the left shows a button with black text on a green background. This is not good accessibility. Let's see how to fix that. (my general advice: stick with the basics) |
Summary of the Pull Request
Use .net WPF instead of WPFUI.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Comparison Windows 11. Left side new one, right side old one.
Light
Dark
Aquatic
Desert
Dusk
Night Sky
Validation Steps Performed
Test on W11 and W10, dark and light and all HC themes.