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

Groups Context Menu Visual Refresh #12262

Merged
merged 4 commits into from
Nov 11, 2021
Merged

Groups Context Menu Visual Refresh #12262

merged 4 commits into from
Nov 11, 2021

Conversation

OliverEGreen
Copy link
Contributor

Purpose

This PR updates the context menu on groups (AnnotationView) to the new visual refresh style.

hcZOuQZLK8

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

Updates the styling of the group context menu.

Reviewers

@QilongTang
@Amoursol

FYIs

@shk

Copy link
Contributor

@reddyashish reddyashish left a comment

Choose a reason for hiding this comment

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

Looks good to me.

<!--<Setter Property="Height" Value="30" />-->
<Setter Property="Width" Value="240" />
<Setter Property="Padding" Value="20,0,20,0" />
<Setter Property="Template">
Copy link
Contributor

Choose a reason for hiding this comment

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

question: do we repeat a lot of the following style definitions?

Copy link
Contributor Author

@OliverEGreen OliverEGreen Nov 11, 2021

Choose a reason for hiding this comment

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

You mean the MenuItem style?
We do; this is something I've struggled with.
Because our Menus contain MenuItems, but also Separators (and sometimes other things too, e.g. the Node Group Color ItemCollections), we get an exception when setting the ItemContainerStyle property.

The workaround is to have the styles passively sitting around in a ContextMenu.Resources scope, being applied when the correct Type is found. That's what we do currently. However, I have issues when trying to define a ContextMenu.Resources scope inside of a ResourceDictionary. So while we can set a global ContextMenu Style just fine, we can't do the same for ContextMenuItems. It would be great if we could - could clean up a lot of code!

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for the reasoning, glad this has been considered

@OliverEGreen
Copy link
Contributor Author

OliverEGreen commented Nov 11, 2021

I just slimmed down the context menu by 40 pixels, there was a lot of empty space hanging around for no reason.

yZphSiDFK2

@QilongTang QilongTang merged commit abdcff4 into DynamoDS:master Nov 11, 2021
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.

3 participants