Smaller event bar height and font

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
Fabrizio Iannetti 2024-04-21 08:43:02 +02:00
parent d2a1092a7c
commit 5760873a86
2 changed files with 9 additions and 13 deletions

View File

@ -188,10 +188,6 @@ impl CalendarApp {
app app
} }
fn title(&self) -> String {
String::from("Calendar")
}
fn update(&mut self, message: Message) -> Command<Message> { fn update(&mut self, message: Message) -> Command<Message> {
match message { match message {
Message::PrevWeek => { Message::PrevWeek => {

View File

@ -80,10 +80,10 @@ impl CalendarParams {
day_other_month_fg: Color::from_rgb8(220, 220, 220), day_other_month_fg: Color::from_rgb8(220, 220, 220),
day_weekend_bg: Color::from_rgb8(245, 245, 245), day_weekend_bg: Color::from_rgb8(245, 245, 245),
day_text_margin: 5.0, day_text_margin: 5.0,
ev_height: 20.0, ev_height: 18.0,
ev_margin: 2.0, ev_margin: 2.0,
ev_bg: Color::from_rgb8(200, 245, 200), ev_bg: Color::from_rgb8(200, 245, 200),
ev_fontsize: 16.0, ev_fontsize: 14.0,
} }
} }
@ -218,8 +218,8 @@ fn render_events_in_row<Renderer>(
width: ev_bar.bounds.width, width: ev_bar.bounds.width,
}; };
let ev_text_position = Point { let ev_text_position = Point {
x: ev_bar.bounds.x, x: ev_bar.bounds.x + 1.0,
y: ev_bar.bounds.y + 1.0, y: ev_bar.bounds.y,
}; };
renderer.fill_text( renderer.fill_text(
Text { Text {