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:
Simon Hausmann 2021-02-02 09:07:01 +01:00
parent c479fd132d
commit 1f091cb1c0
16 changed files with 250 additions and 131 deletions

View file

@ -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>,