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:
parent
9947262eaa
commit
9f3b1b8e21
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue