-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update widget props #44
Conversation
The latest commit adds the scroll property to the DynamicPage widget - this is used to set whether the .opi file opened hides overflow or adds a scroll bar. This functionality already exists in EmbeddedDisplay but because it did not exist in DynamicPage, any screens opened through clicking an ActionButton didn't have it passed in. |
Also, now added RoundedRectangle to list of widgets parsed. This is identical to the Rectangle widget except for the |
I've also tested the
I think these should be consistent as it is easy to make a mistake and use the wrong type when creating the json file (I did first off). Presumably |
I've updated the Ellipse gradient so it should now mimic the CSS behaviour. The I also think it's worth changing |
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.
Perfect. thanks for the changes. I'll create an issue for both of the remaining items.
The actual code and test updates look good to me.
Updated the following widget properties:
horizontalFill
is set to true/false. Also usesbackgroundColor
andbgGradientColor
for the gradient.bgGradientColor
and fgGradientColor now use propertiesbg_gradient_color
andfg_gradient_color
. Previously they mistakenly used propertiesbackground_color
andforeground_color
, and this caused issues with rules for changing background colours in the Shape widget.object-fit
property to Image, so whenstretchToFit
is true the image fills the full space of the div and does not maintain aspect ratio. This is the same behaviour seen in CSS/PhoebuscornerHeight
andcornerWidth
properties to Shape widget, allowing for rounded corners on rectangles.I also updated tests and snapshots affected by the changes to widgets.