make default font size bigger, small changes

This commit is contained in:
Fl1tzi 2023-10-31 22:42:08 +01:00
parent 26b4ad0344
commit a54fc326f9
No known key found for this signature in database
GPG key ID: 06B333727810C686
2 changed files with 6 additions and 6 deletions

View file

@ -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,

View file

@ -29,8 +29,9 @@ pub enum HostEvent {
ButtonReleased,
}
pub type ModuleObject = Box<dyn Module + Send + Sync>;
pub type ModuleFuture =
Pin<Box<dyn Future<Output = Result<Box<dyn Module + Sync + Send>, ButtonConfigError>> + Send>>;
Pin<Box<dyn Future<Output = Result<ModuleObject, ButtonConfigError>> + Send>>;
pub type ModuleInitFunction = fn(Arc<Button>) -> ModuleFuture;
pub fn retrieve_module_from_name(name: &str) -> Option<ModuleInitFunction> {
@ -119,7 +120,6 @@ impl DeviceAccess {
pub type ReturnError = Box<dyn Error + Send + Sync>;
pub type ChannelReceiver = mpsc::Receiver<HostEvent>;
pub type ModuleObject = Box<dyn Module + Send + Sync>;
#[async_trait]
/// An object safe module trait.