Use path directly in svg example
This commit is contained in:
parent
c67f523818
commit
43077364c5
1 changed files with 1 additions and 6 deletions
|
|
@ -25,13 +25,8 @@ impl Tiger {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn view(&self) -> Element<'_, Message> {
|
fn view(&self) -> Element<'_, Message> {
|
||||||
let handle = svg::Handle::from_path(concat!(
|
|
||||||
env!("CARGO_MANIFEST_DIR"),
|
|
||||||
"/resources/tiger.svg",
|
|
||||||
));
|
|
||||||
|
|
||||||
let svg =
|
let svg =
|
||||||
svg(handle)
|
svg(concat!(env!("CARGO_MANIFEST_DIR"), "/resources/tiger.svg",))
|
||||||
.width(Fill)
|
.width(Fill)
|
||||||
.height(Fill)
|
.height(Fill)
|
||||||
.style(|_theme, _status| svg::Style {
|
.style(|_theme, _status| svg::Style {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue