diff options
| author | 2022-12-06 04:34:00 +0100 | |
|---|---|---|
| committer | 2022-12-06 04:34:00 +0100 | |
| commit | b205a663471a8170d7b30cc59894425c09bea563 (patch) | |
| tree | 53514f16226949f1e2440eed8ead4dec968c8d95 /examples | |
| parent | 314b0f7dc52c844669c224060a7b03e842762370 (diff) | |
| download | iced-b205a663471a8170d7b30cc59894425c09bea563.tar.gz iced-b205a663471a8170d7b30cc59894425c09bea563.tar.bz2 iced-b205a663471a8170d7b30cc59894425c09bea563.zip  | |
Remove `appearance` from `Handle`
... and pass it directly to `Renderer::draw` instead.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/svg_style/src/main.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/svg_style/src/main.rs b/examples/svg_style/src/main.rs index 905e1d86..0a1fa039 100644 --- a/examples/svg_style/src/main.rs +++ b/examples/svg_style/src/main.rs @@ -39,8 +39,8 @@ impl Sandbox for SvgStyleExample {              "{}/resources/go-next-symbolic.svg",              env!("CARGO_MANIFEST_DIR")          ))) -        .style(theme::Svg::Custom(|_theme| Appearance { -            fill: Some(Color { +        .style(theme::Svg::custom_fn(|_theme| Appearance { +            color: Some(Color {                  r: 0.0,                  g: 0.28627452,                  b: 0.42745098, @@ -55,8 +55,8 @@ impl Sandbox for SvgStyleExample {              "{}/resources/go-next-symbolic.svg",              env!("CARGO_MANIFEST_DIR")          ))) -        .style(theme::Svg::Custom(|_theme| Appearance { -            fill: Some(Color { +        .style(theme::Svg::custom_fn(|_theme| Appearance { +            color: Some(Color {                  r: 0.5803922,                  g: 0.92156863,                  b: 0.92156863,  | 
