From 27717bc70c3947f553a8b75da9789fe967994a31 Mon Sep 17 00:00:00 2001 From: Malte Veerman Date: Thu, 12 Dec 2019 01:25:18 +0100 Subject: Renamed `Icon` widget to `Svg` and gave it separate width and height. The aspect ratio is now preserved like in the `Image` widget. --- src/native.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/native.rs') diff --git a/src/native.rs b/src/native.rs index e52b63d3..8c86ec7e 100644 --- a/src/native.rs +++ b/src/native.rs @@ -80,17 +80,17 @@ pub mod widget { pub use iced_winit::image::{Handle, Image}; } - pub mod icon { + pub mod svg { //! Display icons in your user interface. - pub use iced_winit::icon::Icon; + pub use iced_winit::svg::Svg; } pub use iced_winit::{Checkbox, Radio, Text}; #[doc(no_inline)] pub use { - button::Button, icon::Icon, image::Image, scrollable::Scrollable, - slider::Slider, text_input::TextInput, + button::Button, image::Image, scrollable::Scrollable, + slider::Slider, svg::Svg, text_input::TextInput, }; /// A container that distributes its contents vertically. -- cgit