mirror of
https://github.com/RGBCube/serenity
synced 2025-07-06 00:27:36 +00:00
GTableView: Remove the old-style focus rect.
This commit is contained in:
parent
33920df299
commit
73c70e5d2e
1 changed files with 0 additions and 13 deletions
|
@ -109,7 +109,6 @@ void GTableView::paint_event(GPaintEvent& event)
|
|||
GPainter painter(*this);
|
||||
painter.add_clip_rect(frame_inner_rect());
|
||||
painter.add_clip_rect(event.rect());
|
||||
painter.save();
|
||||
painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value());
|
||||
|
||||
int exposed_width = max(content_size().width(), width());
|
||||
|
@ -176,18 +175,6 @@ void GTableView::paint_event(GPaintEvent& event)
|
|||
painter.translate(0, vertical_scrollbar().value());
|
||||
if (headers_visible())
|
||||
paint_headers(painter);
|
||||
|
||||
painter.restore();
|
||||
|
||||
if (is_focused()) {
|
||||
Rect item_area_rect {
|
||||
0,
|
||||
header_height(),
|
||||
width() - vertical_scrollbar().width(),
|
||||
height() - header_height() - horizontal_scrollbar().height()
|
||||
};
|
||||
painter.draw_rect(item_area_rect, Color::from_rgb(0x84351a));
|
||||
};
|
||||
}
|
||||
|
||||
void GTableView::paint_headers(Painter& painter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue