-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ColorPicker Updates #4502
ColorPicker Updates #4502
Conversation
Thanks robloo 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 🙌 |
I attempted to add back a drop shadow using the new Concerns aside: I will need someone to recommend fixes for the drop shadow in
|
CornerRadius="4" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" /> | ||
<Border x:Name="PreviewBorder" |
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.
This is a rounded rectangle element, AttachedCardShadow
should just be used here. Note that you need to wrap it in another border (as in the sample) for that to work as it's a primitive. That should make this easier.
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.
AttachedCardShadow should just be used here.
I believe that is in the Microsoft.Toolkit.Uwp.UI.Media package/namespace so I can't use it. That was what I tried first.
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.
🤦♂️ I realized thinking that last night and forgot when I got to commenting here today. 🤔 I'll have to pull down the branch and take a look. Is the current issue that it's not displaying correctly? I have some thoughts on what may be happening. FYI @Ryken100, I know you've been poking at some alternatives too.
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 the current issue that it's not displaying correctly?
The shadow isn't displaying on the target at all. I think it can't even find the target border due to namescope issues but am not sure.
Note that this PR is awaiting feedback from the repository maintainers on what to do with drop shadows. See discussions above. |
Wanted to drop a note to say this hasn't been forgotten. ColorPicker just didn't make the cut for porting to the new repo for our 8.0 release. It's been highly missed though, so we'll want to bring it forward in 8.1. @niels9001 @Arlodotexe we should use this PR as a base for the port. @niels9001 maybe we can investigate the updates here, the new Segmented control, and how we can deal with the styling for shadow (or non-shadow style) since I know we've been doing a pass on Win 11 style updates as we port. |
While I've stepped away from UWP/WinUI3 for now please note the definitive version of this control is now in Avalonia. There were many enhancements and lessons learned applied there. Only some of those enhancements are in this PR. If this control is going to be in 8.1 it might be a good idea to port back some of those ideas. |
Fixes / Updates
Relates to updates mentioned in #3643
ColorPreviewer
primitive and use it in theColorPicker
ShowAccentColors
propertyColorToColorShadeConverter
(replaced byAccentColorConverter
)NumberBox
for color channel inputsCloses #3643, #4208
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
New componentPull Request has been submitted to the documentation repository instructions. Link:Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)If control, added to Visual Studio Design projectIcon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/CommunityToolkit/WindowsCommunityToolkit-design-assets)New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...Tests for the changes have been added (for bug fixes / features) (if applicable)- Very minor changes to templates and removed an obsolete converter
Other information