summaryrefslogtreecommitdiffstats
path: root/web/src/widget/text_input.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/widget/text_input.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 'web/src/widget/text_input.rs')
-rw-r--r--web/src/widget/text_input.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/src/widget/text_input.rs b/web/src/widget/text_input.rs
index 078e05b2..1fea787a 100644
--- a/web/src/widget/text_input.rs
+++ b/web/src/widget/text_input.rs
@@ -4,7 +4,7 @@
//!
//! [`TextInput`]: struct.TextInput.html
//! [`State`]: struct.State.html
-use crate::{bumpalo, style, Bus, Element, Length, Style, Widget};
+use crate::{bumpalo, css, Bus, Css, Element, Length, Widget};
use std::rc::Rc;
/// A field that can be filled with text.
@@ -133,15 +133,15 @@ where
&self,
bump: &'b bumpalo::Bump,
bus: &Bus<Message>,
- style_sheet: &mut style::Sheet<'b>,
+ style_sheet: &mut Css<'b>,
) -> dodrio::Node<'b> {
use dodrio::builder::*;
use wasm_bindgen::JsCast;
- let width = style::length(self.width);
- let max_width = style::length(self.max_width);
+ let width = css::length(self.width);
+ let max_width = css::length(self.max_width);
let padding_class =
- style_sheet.insert(bump, Style::Padding(self.padding));
+ style_sheet.insert(bump, css::Rule::Padding(self.padding));
let on_change = self.on_change.clone();
let event_bus = bus.clone();