-
Notifications
You must be signed in to change notification settings - Fork 176
Automatically set LinePattern.None instead of solid lines for gradients #4711
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
base: master
Are you sure you want to change the base?
Conversation
|
Note that some of them already had this. |
maltelenz
left a comment
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.
Why? The link does not explain why this change would be something you want.
Why wouldn't you be allowed to have a line around a shape with a gradient?
|
I'll gladly review the effects in System Modeler when you consider it ready! |
|
Note: Will need to make a separate PR for |
|
Partial verified list of changes: Duplicated lines, which makes it obvious that border for the gradient-shape should be skipped:
Others that I think are improvements without border:
Will skip after review - the change wasn't "wrong" but there were other issues:
Skipping spherical for ellipses (and a few rectangles), since it is mostly redundant and tools that don't have gradient at line-color at the circle radius will benefit:
|
Modelica/Magnetic/QuasiStatic/FundamentalWave/Losses/PermanentMagnetLosses.mo
Outdated
Show resolved
Hide resolved
Polygons that are not exactly level shouldn't use cylinder-gradient.
|
For Modelica.Mechanics. I note that WSM contributed quite a few improvements - especially for Rotational: Clear improvement:
Minor, but unambiguous improvement in my opinion:
There's already a line covering exactly that so it doesn't matter, but to me that indicates it was the intent:
Doesn't matter (covered) - but added for completeness
Could be skipped, but I think it is better:
The rest is more optional Could be discussed:
It matters and it could be that we should add more (other parts have different border colors):
|
…nto the wheel is ends 1mm to the left. Previously it looked as if it was in front of the wheel (when looking at the entire icon - in small scale it doesn't matter). The gradient-part was not changed. Split off from modelica#4711

Set LinePattern.None for shapes with gradients.
See: modelica/ModelicaSpecification#3789