mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Calendar: Swap Liza for Marieta
This commit is contained in:
parent
98ea44de36
commit
67f81adc55
Notes:
sideshowbarker
2024-07-18 19:04:13 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/67f81adc552 Pull-request: https://github.com/SerenityOS/serenity/pull/6661
1 changed files with 3 additions and 5 deletions
|
@ -35,8 +35,8 @@ static const char* short_month_names[] = {
|
|||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
|
||||
};
|
||||
|
||||
static const auto extra_large_font = Gfx::BitmapFont::load_from_file("/res/fonts/LizaRegular36.font");
|
||||
static const auto large_font = Gfx::BitmapFont::load_from_file("/res/fonts/LizaRegular24.font");
|
||||
static const auto extra_large_font = Gfx::BitmapFont::load_from_file("/res/fonts/MarietaRegular36.font");
|
||||
static const auto large_font = Gfx::BitmapFont::load_from_file("/res/fonts/MarietaRegular24.font");
|
||||
static const auto medium_font = Gfx::BitmapFont::load_from_file("/res/fonts/PebbletonRegular14.font");
|
||||
static const auto small_font = Gfx::BitmapFont::load_from_file("/res/fonts/KaticaRegular10.font");
|
||||
|
||||
|
@ -477,7 +477,7 @@ void Calendar::paint_event(GUI::PaintEvent& event)
|
|||
auto text_rect = Gfx::IntRect(
|
||||
x_offset,
|
||||
y_offset + 4,
|
||||
m_tiles[0][i].width,
|
||||
m_tiles[0][i].width - 4,
|
||||
font().glyph_height() + 4);
|
||||
|
||||
if (width > 150 && height > 150) {
|
||||
|
@ -486,10 +486,8 @@ void Calendar::paint_event(GUI::PaintEvent& event)
|
|||
set_font(large_font);
|
||||
} else if (width > 50 && height > 50) {
|
||||
set_font(medium_font);
|
||||
text_rect.set_width(m_tiles[0][i].width - 4);
|
||||
} else if (width >= 30 && height >= 30) {
|
||||
set_font(small_font);
|
||||
text_rect.set_width(m_tiles[0][i].width - 4);
|
||||
} else {
|
||||
set_font(small_font);
|
||||
text_alignment = Gfx::TextAlignment::Center;
|
||||
|
|
Loading…
Reference in a new issue