diff options
author | 2025-02-04 07:53:56 +0100 | |
---|---|---|
committer | 2025-02-04 07:53:56 +0100 | |
commit | 565599876172b3f56d86b119ae453b5bcd8949e1 (patch) | |
tree | 5353cb71aa595fc5ef3445e104b4776b8cc61ccb /core | |
parent | c02ae0c4a430994247e6fbc4318ac344ab89123c (diff) | |
download | iced-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.rs | 6 |
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) + } +} |