1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-06 10:07:35 +00:00

Base: Add Csilla Bold 7x10 variant.

It's nice to have a thin and a bold variant to complement each other.
This commit is contained in:
Andreas Kling 2019-03-01 02:50:50 +01:00
parent 0776c51bf5
commit b5e5f26a82
4 changed files with 11 additions and 1 deletions

View file

@ -147,6 +147,7 @@ void GTableView::paint_event(GPaintEvent& event)
auto column_metadata = m_model->column_metadata(column_index);
int column_width = column_metadata.preferred_width;
Rect cell_rect(x_offset, 0, column_width + horizontal_padding() * 2, item_height());
painter.set_font(Font::default_bold_font());
painter.draw_text(cell_rect.translated(horizontal_padding(), 0), m_model->column_name(column_index), TextAlignment::CenterLeft, Color::Black);
x_offset += column_width + horizontal_padding() * 2;
painter.draw_line(cell_rect.top_left(), cell_rect.bottom_left(), Color::White);