-
Notifications
You must be signed in to change notification settings - Fork 635
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
Python Node Editor Visual Update - part #3 #13783
Python Node Editor Visual Update - part #3 #13783
Conversation
- aligns custom highlighting rules between design script and python script editors by reusing the same method - assigned correct color values to python script keywords as per Figma (omitting the ones that are not used and shouldn't be reserved in Python, such as 'Imperative')
- changed hyperlink color for both editors
- now python script will follow the convention used in desingscript for function color
- aligned different pink colors to the default #F2A9F2
- changed if/else (no longer bold) - changed def/class (reuse number blue) - changed def (no longer italic)
I think these are the final color changes for the moment and we should be good to Merge if everything else looks OK @sm6srw ! |
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.
LGTM once the conflicts are resolved.
- removed unnecessary namespace statement
- now properly marks the script as saved when using Save and Run button
Jobs on master-5 are hanged, running self-service https://master-15.jenkins.autodesk.com/view/DYN/job/DYN-DevCI_Self_Service/1129/. |
DynamoCoreWpfTests.CoreUserInterfaceTests.WorkspaceContextMenu_TestIfOpenOnRightClick sporadit test failure reported. Merging. |
@dnenov was about to add a fix in this for the folding behavior you mentioned. May be in another PR. |
Great! Let's use another one. I would love to test this before recharge sprint |
* Implemented CodeHighlightingRuleFactory for PythonScript - aligns custom highlighting rules between design script and python script editors by reusing the same method - assigned correct color values to python script keywords as per Figma (omitting the ones that are not used and shouldn't be reserved in Python, such as 'Imperative') * Hyperlink color - changed hyperlink color for both editors * Match function colors - now python script will follow the convention used in desingscript for function color * Update DesignScript.Resources.SyntaxHighlighting.xshd - aligned different pink colors to the default #F2A9F2 * Update ICSharpCode.PythonBinding.Resources.Python.xshd - changed if/else (no longer bold) - changed def/class (reuse number blue) - changed def (no longer italic) * Removed unnecessary namespace statement - removed unnecessary namespace statement * Fixed save on save and run - now properly marks the script as saved when using Save and Run button
* Implemented CodeHighlightingRuleFactory for PythonScript - aligns custom highlighting rules between design script and python script editors by reusing the same method - assigned correct color values to python script keywords as per Figma (omitting the ones that are not used and shouldn't be reserved in Python, such as 'Imperative') * Hyperlink color - changed hyperlink color for both editors * Match function colors - now python script will follow the convention used in desingscript for function color * Update DesignScript.Resources.SyntaxHighlighting.xshd - aligned different pink colors to the default #F2A9F2 * Update ICSharpCode.PythonBinding.Resources.Python.xshd - changed if/else (no longer bold) - changed def/class (reuse number blue) - changed def (no longer italic) * Removed unnecessary namespace statement - removed unnecessary namespace statement * Fixed save on save and run - now properly marks the script as saved when using Save and Run button
Purpose
A continuation of Part 1 and Part 2. This PR only deals with the reserved words colors, aligning the color scheme used in design script editor and the python editor.
Color scheme as per Figma project
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@sm6srw
@Amoursol
FYIs
@Jingyi-Wen