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

Dyn 5676 color picker custom colors popup #13824

Merged
merged 4 commits into from
Mar 16, 2023
Merged

Dyn 5676 color picker custom colors popup #13824

merged 4 commits into from
Mar 16, 2023

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Several changes were done for supporting the Custom Color controls in the CustomColorPicker Popup, here is the list of the most important changes:

  • I've added the controls for selecting the custom colors that will be visible if a flag is enabled (otherwise the available color controls will be shown).
  • I've modified to current CustomColorPicker to use just one Popup (using 2 Popups was producing more problems).
  • I've modified the code for creating the CustomColorPicker so now we will be passing the list of custom colors and the initial color that will be selected (in case it exist in the ColorPicker).
  • I've updated the style for the ToggleButton inside the Color Palette node due that was not following the Visual Refresh style used in other ComboBoxes.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Release Notes

Several changes were done for supporting the Custom Color controls in the CustomColorPicker Popup

Reviewers

@QilongTang

FYIs

@avidit
@Jingyi-Wen

- I've added the controls for selecting the custom colors.
- I've modified to current CustomColorPicker to use just one Popup.
- I've modified the code for creating the CustomColorPicker so now we will be passing the list of custom colors and the initial color that will be selected (in case it exist in the ColorPicker).
Updating the Style for the ToggleButton inside the Color Palette node due that was not following the Visual Refresh style used in other ComboBoxes
@RobertGlobant20
Copy link
Contributor Author

Here is a GIF showing the behavior of the CustomColorPicker when selecting a color in the GroupStyles section.
CustomColorPicker_GroupStyles

@RobertGlobant20
Copy link
Contributor Author

Here is a GIF showing the behavior of the CustomColorPicker when selecting a color in the Color Palette node.
CustomColorPicker_ColorPalleteNode

@RobertGlobant20
Copy link
Contributor Author

Here is a GIF showing the Color Palette node with the ToggleButton using the updated Style.
ColorPaletteStyle

d:DesignHeight="550"
d:DesignWidth="800"
AllowsTransparency="True"
Focusable="False"
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this doe? I guess the focus will remain on Dynamo window?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QilongTang I changed this property to True so it will have the focus when the Popup is opened.
See the next commit: ada8c38

@QilongTang QilongTang added this to the 2.18.0 milestone Mar 15, 2023
@QilongTang QilongTang merged commit 03862df into DynamoDS:master Mar 16, 2023
@QilongTang QilongTang deleted the DYN-5676-ColorPicker-CustomColorsPopup branch March 16, 2023 17:08
sm6srw pushed a commit to sm6srw/Dynamo that referenced this pull request Mar 29, 2023
* DYN-5676-ColorPicker-CustomColorsPopup

- I've added the controls for selecting the custom colors.
- I've modified to current CustomColorPicker to use just one Popup.
- I've modified the code for creating the CustomColorPicker so now we will be passing the list of custom colors and the initial color that will be selected (in case it exist in the ColorPicker).

* DYN-5676-ColorPicker-CustomColorsPopup

Updating the Style for the ToggleButton inside the Color Palette node due that was not following the Visual Refresh style used in other ComboBoxes

* DYN-5676-ColorPicker-CustomColorsPopup Code Review1

Setting the property Focusable="True" so it can have the focus when is opened.
sm6srw pushed a commit that referenced this pull request Apr 5, 2023
* DYN-5676-ColorPicker-CustomColorsPopup

- I've added the controls for selecting the custom colors.
- I've modified to current CustomColorPicker to use just one Popup.
- I've modified the code for creating the CustomColorPicker so now we will be passing the list of custom colors and the initial color that will be selected (in case it exist in the ColorPicker).

* DYN-5676-ColorPicker-CustomColorsPopup

Updating the Style for the ToggleButton inside the Color Palette node due that was not following the Visual Refresh style used in other ComboBoxes

* DYN-5676-ColorPicker-CustomColorsPopup Code Review1

Setting the property Focusable="True" so it can have the focus when is opened.
@dnenov dnenov mentioned this pull request Apr 17, 2023
9 tasks
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