summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-04 07:53:56 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-04 07:53:56 +0100
commit565599876172b3f56d86b119ae453b5bcd8949e1 (patch)
tree5353cb71aa595fc5ef3445e104b4776b8cc61ccb /core
parentc02ae0c4a430994247e6fbc4318ac344ab89123c (diff)
downloadiced-565599876172b3f56d86b119ae453b5bcd8949e1.tar.gz
iced-565599876172b3f56d86b119ae453b5bcd8949e1.tar.bz2
iced-565599876172b3f56d86b119ae453b5bcd8949e1.zip
Draft `Viewer` trait for `markdown`
Diffstat (limited to 'core')
-rw-r--r--core/src/padding.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/padding.rs b/core/src/padding.rs
index e26cdd9b..9ec02e6d 100644
--- a/core/src/padding.rs
+++ b/core/src/padding.rs
@@ -202,3 +202,9 @@ impl From<Padding> for Size {
Self::new(padding.horizontal(), padding.vertical())
}
}
+
+impl From<Pixels> for Padding {
+ fn from(pixels: Pixels) -> Self {
+ Self::from(pixels.0)
+ }
+}