From a54fc326f9bec3c97853eb176a81c25dc0fa6461 Mon Sep 17 00:00:00 2001 From: Fl1tzi Date: Tue, 31 Oct 2023 22:42:08 +0100 Subject: [PATCH] make default font size bigger, small changes --- src/image_rendering.rs | 8 ++++---- src/modules.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/image_rendering.rs b/src/image_rendering.rs index 6e25c65..11d1582 100644 --- a/src/image_rendering.rs +++ b/src/image_rendering.rs @@ -57,7 +57,7 @@ impl Default for ImageBuilder { // will get changed width: 0, scale: 60.0, - font_size: 15.0, + font_size: 16.0, text: None, image: None, } @@ -133,7 +133,7 @@ impl ImageBuilder { } } -// Component that just displays an image +/// Component that just displays an image struct ImageComponent { height: usize, width: usize, @@ -165,7 +165,7 @@ impl Component for ImageComponent { } } -// Component that just displays text +/// Component that just displays text struct TextComponent { height: usize, width: usize, @@ -203,7 +203,7 @@ impl Component for TextComponent { } } -// Component that displays image and text +/// Component that displays image and text struct ImageTextComponent { height: usize, width: usize, diff --git a/src/modules.rs b/src/modules.rs index 0e4c31d..0195295 100644 --- a/src/modules.rs +++ b/src/modules.rs @@ -29,8 +29,9 @@ pub enum HostEvent { ButtonReleased, } +pub type ModuleObject = Box; pub type ModuleFuture = - Pin, ButtonConfigError>> + Send>>; + Pin> + Send>>; pub type ModuleInitFunction = fn(Arc