mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Rename Rectangle.color to Rectangle.background
Add support for built-in property aliases and rename `color` to `background` - in preparation for it also changing to type brush. Right now the alias is silent, a deprecation and overall change will come in a subsequent change.
This commit is contained in:
parent
c479fd132d
commit
1f091cb1c0
16 changed files with 250 additions and 131 deletions
|
@ -157,7 +157,7 @@ impl ItemWeak {
|
|||
#[pin]
|
||||
/// The implementation of the `Rectangle` element
|
||||
pub struct Rectangle {
|
||||
pub color: Property<Color>,
|
||||
pub background: Property<Color>,
|
||||
pub x: Property<f32>,
|
||||
pub y: Property<f32>,
|
||||
pub width: Property<f32>,
|
||||
|
@ -218,7 +218,7 @@ ItemVTable_static! {
|
|||
#[pin]
|
||||
/// The implementation of the `BorderRectangle` element
|
||||
pub struct BorderRectangle {
|
||||
pub color: Property<Color>,
|
||||
pub background: Property<Color>,
|
||||
pub x: Property<f32>,
|
||||
pub y: Property<f32>,
|
||||
pub width: Property<f32>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue