diff options
| author | 2020-03-24 19:08:21 +0100 | |
|---|---|---|
| committer | 2020-03-24 19:08:21 +0100 | |
| commit | e77fa175aa0eaf62be4ebafbd8e0dbc5df18f006 (patch) | |
| tree | 78608f77c6db3ff1e61a58008bd54d114f32352c /examples/svg/src | |
| parent | 7cb1452d29ddfdcd29fd7ecc7c96a79ea2681fce (diff) | |
| parent | fd7d9622e333a0a2cd5c2e8e6cc38cc09d7981e4 (diff) | |
| download | iced-e77fa175aa0eaf62be4ebafbd8e0dbc5df18f006.tar.gz iced-e77fa175aa0eaf62be4ebafbd8e0dbc5df18f006.tar.bz2 iced-e77fa175aa0eaf62be4ebafbd8e0dbc5df18f006.zip | |
Merge branch 'master' into feature/text-selection
Diffstat (limited to '')
| -rw-r--r-- | examples/svg/src/main.rs | 11 | 
1 files changed, 8 insertions, 3 deletions
| 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) | 
