mirror of
https://codeberg.org/Fl1tzi/microdeck.git
synced 2024-05-08 14:40:44 +00:00
make default font size bigger, small changes
This commit is contained in:
parent
26b4ad0344
commit
a54fc326f9
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue