Smaller event bar height and font
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
parent
d2a1092a7c
commit
5760873a86
|
@ -188,10 +188,6 @@ impl CalendarApp {
|
|||
app
|
||||
}
|
||||
|
||||
fn title(&self) -> String {
|
||||
String::from("Calendar")
|
||||
}
|
||||
|
||||
fn update(&mut self, message: Message) -> Command<Message> {
|
||||
match message {
|
||||
Message::PrevWeek => {
|
||||
|
|
|
@ -80,10 +80,10 @@ impl CalendarParams {
|
|||
day_other_month_fg: Color::from_rgb8(220, 220, 220),
|
||||
day_weekend_bg: Color::from_rgb8(245, 245, 245),
|
||||
day_text_margin: 5.0,
|
||||
ev_height: 20.0,
|
||||
ev_height: 18.0,
|
||||
ev_margin: 2.0,
|
||||
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,
|
||||
};
|
||||
let ev_text_position = Point {
|
||||
x: ev_bar.bounds.x,
|
||||
y: ev_bar.bounds.y + 1.0,
|
||||
x: ev_bar.bounds.x + 1.0,
|
||||
y: ev_bar.bounds.y,
|
||||
};
|
||||
renderer.fill_text(
|
||||
Text {
|
||||
|
|
Loading…
Reference in New Issue