-
Notifications
You must be signed in to change notification settings - Fork 92
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
Legacy rectangle widget with 'None' border style #2203
Comments
The BOY rectangle has "Line" as well as "Border", which is a bit odd: The display builder only has one surrounding element for the rectangle, and that's the "Line". But not sure what to do if legacy displays use both "Line" and "Border". |
Result would be this, keeping the "border color", and still allowing the "line". |
As for "border_style" being "None" yet the border_width is set, I'd consider that an error. Update the legacy displays to set border style to line, or use "line_width" and "line_color", either way it should then work in both. |
.. whichever has a larger "width". Honor the "border_color" instead of always using black resp. "Text" color. #2203
Great, thanks Kay!! |
We have some legacy rectangle widgets that have a 'None' border style but a non-zero border_width. These rectangles when opened with Display Builder have a zero line_width as enforced here https://github.com/ControlSystemStudio/phoebus/blob/master/app/display/model/src/main/java/org/csstudio/display/builder/model/widgets/OutlineSupport.java#L58.
Can we have the 'None' case to also follow other cases like 'Line' etc. so border_width doesn't get overlooked?
Also, border colors get overridden with NamedWidgetColors.TEXT for 'Line' and other border_styles but what if border color is set to some other color. Why not copy the border_color from BOY rectangle widget to here?
The text was updated successfully, but these errors were encountered: