diff options
author | 2020-02-28 15:17:16 +0100 | |
---|---|---|
committer | 2020-02-28 15:17:16 +0100 | |
commit | bab7dbcaef5d637e6452ef814b78595d9004971c (patch) | |
tree | db82ee28634d499749816f69eaac4f303d088c14 /examples/svg | |
parent | 69c81aa50dc30bc7a05df4393e45bc3d478db8b5 (diff) | |
parent | 88d4cd097044077127e1b3aa8fcb04afed185491 (diff) | |
download | iced-bab7dbcaef5d637e6452ef814b78595d9004971c.tar.gz iced-bab7dbcaef5d637e6452ef814b78595d9004971c.tar.bz2 iced-bab7dbcaef5d637e6452ef814b78595d9004971c.zip |
Merge pull request #154 from Maldela/atlas
Texture atlas
Diffstat (limited to 'examples/svg')
-rw-r--r-- | examples/svg/Cargo.toml | 1 | ||||
-rw-r--r-- | examples/svg/src/main.rs | 11 |
2 files changed, 9 insertions, 3 deletions
diff --git a/examples/svg/Cargo.toml b/examples/svg/Cargo.toml index d8f83ac2..161ee6a8 100644 --- a/examples/svg/Cargo.toml +++ b/examples/svg/Cargo.toml @@ -7,3 +7,4 @@ publish = false [dependencies] iced = { path = "../..", features = ["svg"] } +env_logger = "0.7" diff --git a/examples/svg/src/main.rs b/examples/svg/src/main.rs index 1fb80534..811fdfb5 100644 --- a/examples/svg/src/main.rs +++ b/examples/svg/src/main.rs @@ -1,6 +1,8 @@ use iced::{Column, Container, Element, Length, Sandbox, Settings, Svg}; pub fn main() { + env_logger::init(); + Tiger::run(Settings::default()) } @@ -22,9 +24,12 @@ impl Sandbox for Tiger { fn view(&mut self) -> Element<()> { let content = Column::new().padding(20).push( - Svg::new(format!("{}/resources/tiger.svg", env!("CARGO_MANIFEST_DIR"))) - .width(Length::Fill) - .height(Length::Fill), + Svg::new(format!( + "{}/resources/tiger.svg", + env!("CARGO_MANIFEST_DIR") + )) + .width(Length::Fill) + .height(Length::Fill), ); Container::new(content) |