summaryrefslogtreecommitdiffstats
path: root/examples/todos/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-02-17 16:53:02 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-17 16:53:02 +0100
commit7dc1fb488ddbd12519571b51d75ae0c28875911d (patch)
tree92590830b23bb714ec8024766fef7273b041bbf3 /examples/todos/src
parentf75e0202575ca6e3ebf7d817eecbf51e198506fd (diff)
parentfd1408693322f5bfdaee7f27bd098808658d7310 (diff)
downloadiced-7dc1fb488ddbd12519571b51d75ae0c28875911d.tar.gz
iced-7dc1fb488ddbd12519571b51d75ae0c28875911d.tar.bz2
iced-7dc1fb488ddbd12519571b51d75ae0c28875911d.zip
Merge pull request #1711 from iced-rs/feature/generic-pixel-units
Generic pixel units
Diffstat (limited to 'examples/todos/src')
-rw-r--r--examples/todos/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index 04411ed7..6408f09c 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -460,7 +460,7 @@ fn empty_message(message: &str) -> Element<'_, Message> {
.style(Color::from([0.7, 0.7, 0.7])),
)
.width(Length::Fill)
- .height(Length::Units(200))
+ .height(200)
.center_y()
.into()
}
@@ -474,7 +474,7 @@ const ICONS: Font = Font::External {
fn icon(unicode: char) -> Text<'static> {
text(unicode.to_string())
.font(ICONS)
- .width(Length::Units(20))
+ .width(20)
.horizontal_alignment(alignment::Horizontal::Center)
.size(20)
}