summaryrefslogtreecommitdiffstats
path: root/web/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-05 00:23:22 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-05 00:23:22 +0100
commit0030bcbd33f5c4db60aac826552042e46b51c691 (patch)
tree08f2ef54d673fb94d02b23644bbc3c204f80998b /web/src/lib.rs
parent7b892eb3e11596925a2993bcc4175ac09ff3768a (diff)
downloadiced-0030bcbd33f5c4db60aac826552042e46b51c691.tar.gz
iced-0030bcbd33f5c4db60aac826552042e46b51c691.tar.bz2
iced-0030bcbd33f5c4db60aac826552042e46b51c691.zip
Rename module `style` to `css` in `iced_web`
Diffstat (limited to '')
-rw-r--r--web/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/src/lib.rs b/web/src/lib.rs
index 0b9c0c3d..7b54a07a 100644
--- a/web/src/lib.rs
+++ b/web/src/lib.rs
@@ -63,11 +63,12 @@ mod bus;
mod element;
mod hasher;
-pub mod style;
+pub mod css;
pub mod subscription;
pub mod widget;
pub use bus::Bus;
+pub use css::Css;
pub use dodrio;
pub use element::Element;
pub use hasher::Hasher;
@@ -76,7 +77,6 @@ pub use iced_core::{
VerticalAlignment,
};
pub use iced_futures::{executor, futures, Command};
-pub use style::Style;
pub use subscription::Subscription;
#[doc(no_inline)]
@@ -241,13 +241,13 @@ where
let mut ui = self.application.borrow_mut();
let element = ui.view();
- let mut style_sheet = style::Sheet::new();
+ let mut css = Css::new();
- let node = element.widget.node(bump, &self.bus, &mut style_sheet);
+ let node = element.widget.node(bump, &self.bus, &mut css);
div(bump)
.attr("style", "width: 100%; height: 100%")
- .children(vec![style_sheet.node(bump), node])
+ .children(vec![css.node(bump), node])
.finish()
}
}