18 lines
386 B
Rust
18 lines
386 B
Rust
use zng::{
|
|
layout::AngleUnits,
|
|
widget::{background_gradient, Wgt},
|
|
APP,
|
|
};
|
|
|
|
fn main() {
|
|
let _scope = APP.minimal();
|
|
let _ = Wgt! {
|
|
// background_gradient has two fields
|
|
// the error highlights the property
|
|
// in a struct initializer the struct name is highlighted
|
|
background_gradient = {
|
|
axis: 0.deg(),
|
|
}
|
|
};
|
|
}
|