-
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 V2 #7710
Color Picker V2 #7710
Conversation
… context menu" This reverts commit af35a23.
# Conflicts: # src/modules/colorPicker/ColorPickerUI/Behaviors/AppearAnimationBehavior.cs # src/modules/colorPicker/ColorPickerUI/ColorPickerUI.csproj # src/modules/colorPicker/ColorPickerUI/MainWindow.xaml # src/modules/colorPicker/ColorPickerUI/Settings/IUserSettings.cs # src/modules/colorPicker/ColorPickerUI/ViewModels/MainViewModel.cs # src/modules/colorPicker/ColorPickerUI/Views/MainView.xaml # src/modules/colorPicker/ColorPickerUI/Views/ZoomView.xaml
…t for future custom formats
…out drag&drop reorder behavior
…color into the history
…rol, moved add color formats button at bottom
@niels9001 , @martinchrzan One point I want to be mentioned: The contrast between the copyColor button and the ui background could be higher. |
Great work!!! Joining @htcfreek in asking if this elements have enough test to background contrast, since we already have some accessibility bugs opened because of similar low contrast values |
Good comments. We need another go to check on accessibility, inc. colors. |
For clarification: |
And another suggestion: You have this wide button for adding color representations where the people mostly will click in the middle where you have the plus sign. And then opens a small menu on the right side and you have to move the cursor over the half ui.
=> Possible solution: The menu should have the same wide as the button (and centered text) or it opens at the cursor position. |
@htcfreek let's review final UI once this goes out of draft. There's still work to be done and we are aware :) |
src/core/Microsoft.PowerToys.Settings.UI.UnitTests/ViewModelTests/ColorPicker.cs
Outdated
Show resolved
Hide resolved
src/core/Microsoft.PowerToys.Settings.UI.UnitTests/ViewModelTests/ColorPicker.cs
Outdated
Show resolved
Hide resolved
@martinchrzan I have some feedback for the UX (I didn't read all the comments in the PR, so sorry if these have been already suggested/sorted out):
|
|
…om/microsoft/PowerToys into user/martinchrzan/ColorPickerV2WPF
|
@martinchrzan @niels9001 |
@niels9001 Should we change the cursor to hand (or something else) when over ColorPickerControlor or would it be confusing since we don't change it on other buttons? |
Yeah, let's leave it out for now and ship it to see if we run into any major issues. |
We could add e.g. a teaching tip at some point as an OoBE for the editor if users don't see it at all. |
@niels9001 also, should we drop/decrease drop shadow on the picker/zoom window since I feel like it makes it jerky? |
# Conflicts: # src/core/Microsoft.PowerToys.Settings.UI.UnitTests/ViewModelTests/ColorPicker.cs
No, but I tested on a desktop with a 12 core CPU and a dedicated GPU. |
🥳 🎉 |
@martinchrzan yeah, if it lags let's get it out. I don't think WPF shadows are as optimized as the UWP ThemeShadows. |
Do we get this in for 0.27? |
@martinchrzan this will need #8142 fix which is still being tested for CI to pass. |
🎉 🥳 |
Summary of the Pull Request
Color Picker V2 is here!
Following on #5379 we have added a new "Editor" window which will be opened when pressing Activation shortcut for Color Picker (Shift + Win + C), this is configurable and you can decide on following actions.
For a faster adoption, we set this setting to be checked by a default.
When pressing the activation shortcut, following window will open:
Top left corner - color picker icon will open color picker and you can start picking your colors on the screen
Left side list - history of picked/configured colors, newest on top, we have set this list to show 20 latest colors (we can expose this number settings in SettingsUI, to be configurable). Right click enables removing colors from this list.
Top right corner - settings icon - will open SettingsUI and ColorPicker page directly (this functionality is dependent on #7408)
Middle part top - color gradient - biggest middle bar shows the current color, on sides there are color variations - clicking on those will add a new color into history
Middle part - color formats
DEMOS!
New picking experience
The new picking experiences uses Fluent Design (like drop shadows for better contrast) and is now theme aware. Picker size is dynamic depending on the color format length displayed inside.
Checking different colors and copying desired color format into the clipboard
You can either select and copy only a part of a color format or click the icon on the right to copy the whole string into the clipboard directly.
Fine tune picked color
You can pick a different shade of color by clicking on the smaller rectangles. These will be added to the history and will be selected. By clicking on the main color you can finetune the color by using the sliders.
Theming support
Colorpicker now supports light, dark and all high contrast themes (#7290)
New icon
Shown in taskbar and task manager.
Add/hide color formats
The user is able to show/hide and re-order the color formats in Settings. Using the toggleswitch colorformats can be enabled/disabled, dragging them changes the order.
Please note, there will be further bug fixes and smaller design tweaks!
PR Checklist
Info on Pull Request
What does this include?
Validation Steps Performed
How does someone test & validate?