diff options
author | 2019-12-12 01:25:18 +0100 | |
---|---|---|
committer | 2019-12-12 01:25:18 +0100 | |
commit | 27717bc70c3947f553a8b75da9789fe967994a31 (patch) | |
tree | 96c43a10601497c9a1c813dd7ee170515dde79b8 /src | |
parent | 895eaef99b52c24e6f3d804897ad850c1f1de960 (diff) | |
download | iced-27717bc70c3947f553a8b75da9789fe967994a31.tar.gz iced-27717bc70c3947f553a8b75da9789fe967994a31.tar.bz2 iced-27717bc70c3947f553a8b75da9789fe967994a31.zip |
Renamed `Icon` widget to `Svg` and gave it separate width and height.
The aspect ratio is now preserved like in the `Image` widget.
Diffstat (limited to 'src')
-rw-r--r-- | src/native.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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. |