mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibGUI: Reduce overdraw in GListBox.
This commit is contained in:
parent
c95228b128
commit
dbeac6e093
Notes:
sideshowbarker
2024-07-19 15:55:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dbeac6e0930
1 changed files with 2 additions and 3 deletions
|
@ -21,9 +21,8 @@ void GListBox::paint_event(GPaintEvent&)
|
|||
{
|
||||
Painter painter(*this);
|
||||
|
||||
// FIXME: Reduce overdraw.
|
||||
painter.fill_rect(rect(), Color::White);
|
||||
painter.draw_rect(rect(), Color::Black);
|
||||
painter.fill_rect({ rect().x() + 1, rect().y() + 1, rect().width() - 2, rect().height() - 2 }, background_color());
|
||||
painter.draw_rect(rect(), foreground_color());
|
||||
|
||||
if (is_focused())
|
||||
painter.draw_focus_rect(rect());
|
||||
|
|
Loading…
Reference in a new issue