mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Add BasicBorderRectangle to avoid unnecessary xxx-border-radius bindings
This commit is contained in:
parent
5e086971c9
commit
cc5d2b24e5
7 changed files with 135 additions and 12 deletions
|
@ -29,14 +29,17 @@ component Rectangle inherits Empty {
|
|||
in property <brush> color <=> background;
|
||||
}
|
||||
|
||||
component BorderRectangle inherits Rectangle {
|
||||
component BasicBorderRectangle inherits Rectangle {
|
||||
in property <length> border-width;
|
||||
in property <length> border-radius;
|
||||
in property <brush> border-color;
|
||||
}
|
||||
|
||||
component BorderRectangle inherits BasicBorderRectangle {
|
||||
in property <length> border-top-left-radius;
|
||||
in property <length> border-top-right-radius;
|
||||
in property <length> border-bottom-left-radius;
|
||||
in property <length> border-bottom-right-radius;
|
||||
in property <brush> border-color;
|
||||
//-default_size_binding:expands_to_parent_geometry
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue