1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LizaBold8x10: Import a bold variant of Liza8x10 and make it the default bold.

Start using it right away for window titles.
This commit is contained in:
Andreas Kling 2019-02-04 11:37:15 +01:00
parent ac11c90dee
commit cacba45f1c
5 changed files with 37 additions and 2 deletions

View file

@ -123,6 +123,11 @@ WSWindowManager::WSWindowManager()
m_front_painter = make<Painter>(*m_front_bitmap);
m_back_painter = make<Painter>(*m_back_bitmap);
m_font = Font::default_bold_font();
m_front_painter->set_font(font());
m_back_painter->set_font(font());
m_background_color = Color(50, 50, 50);
m_active_window_border_color = Color(110, 34, 9);
m_active_window_border_color2 = Color(244, 202, 158);
@ -159,7 +164,7 @@ void WSWindowManager::paint_window_frame(WSWindow& window)
auto titlebar_title_rect = titlebar_inner_rect;
titlebar_title_rect.set_width(Font::default_font().glyph_width() * window.title().length());
titlebar_title_rect.set_width(font().glyph_width() * window.title().length());
Rect inner_border_rect {
window.x() - 1,

View file

@ -39,6 +39,9 @@ public:
void invalidate();
void flush(const Rect&);
Font& font() { return *m_font; }
const Font& font() const { return *m_font; }
private:
WSWindowManager();
virtual ~WSWindowManager() override;
@ -98,6 +101,8 @@ private:
OwnPtr<Painter> m_back_painter;
OwnPtr<Painter> m_front_painter;
RetainPtr<Font> m_font;
mutable Lock m_lock;
bool m_flash_flush { false };