summaryrefslogtreecommitdiffstats
path: root/examples/svg/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-03-08 14:00:28 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-08 14:00:28 +0100
commitedf7d7ca7593f660f4b15f154257471c26df87de (patch)
tree7cee3cbfbeb2ae5145f1bf6087b61fce4cbed8c9 /examples/svg/src
parent2074757cdc65ec16eeb1c7a12a5ff3bb5ed00859 (diff)
parent8919f2593e39f76b273513e959fa6d5ffb78fde2 (diff)
downloadiced-edf7d7ca7593f660f4b15f154257471c26df87de.tar.gz
iced-edf7d7ca7593f660f4b15f154257471c26df87de.tar.bz2
iced-edf7d7ca7593f660f4b15f154257471c26df87de.zip
Merge pull request #2312 from iced-rs/theming-reloaded
Theming reloaded
Diffstat (limited to 'examples/svg/src')
-rw-r--r--examples/svg/src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/svg/src/main.rs b/examples/svg/src/main.rs
index ba93007c..4e238048 100644
--- a/examples/svg/src/main.rs
+++ b/examples/svg/src/main.rs
@@ -1,4 +1,3 @@
-use iced::theme;
use iced::widget::{checkbox, column, container, svg};
use iced::{color, Element, Length, Sandbox, Settings};
@@ -43,11 +42,11 @@ impl Sandbox for Tiger {
let svg = svg(handle).width(Length::Fill).height(Length::Fill).style(
if self.apply_color_filter {
- theme::Svg::custom_fn(|_theme| svg::Appearance {
+ |_theme, _status| svg::Appearance {
color: Some(color!(0x0000ff)),
- })
+ }
} else {
- theme::Svg::Default
+ |_theme, _status| svg::Appearance::default()
},
);