From 9499a8f9e6f9971dedfae563cb133232aa3cebc2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 4 May 2023 13:00:16 +0200 Subject: Support configurable `LineHeight` in text widgets --- core/src/pixels.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src/pixels.rs') diff --git a/core/src/pixels.rs b/core/src/pixels.rs index e42cd9f9..6a9e5c88 100644 --- a/core/src/pixels.rs +++ b/core/src/pixels.rs @@ -20,3 +20,9 @@ impl From for Pixels { Self(f32::from(amount)) } } + +impl From for f32 { + fn from(pixels: Pixels) -> Self { + pixels.0 + } +} -- cgit