1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

Spreadsheet: Draw cell borders as 1px thin line :^)

This commit is contained in:
Andreas Kling 2020-08-27 19:28:04 +02:00
parent 9947262eaa
commit 9f3b1b8e21

View file

@ -125,7 +125,9 @@ void SpreadsheetView::TableCellPainter::paint(GUI::Painter& painter, const Gfx::
// Undo the horizontal padding done by the table view...
auto cell_rect = rect.inflated(m_table_view.horizontal_padding() * 2, 0);
painter.draw_rect(cell_rect, palette.ruler());
painter.draw_line(cell_rect.bottom_left(), cell_rect.bottom_right(), palette.ruler());
painter.draw_line(cell_rect.top_right(), cell_rect.bottom_right(), palette.ruler());
if (m_table_view.selection().contains(index)) {
Color fill_color = palette.selection();
fill_color.set_alpha(80);