mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 19:37:35 +00:00
LibGUI: Both GToolBar and GStatusBar should have highlight/shadow.
This commit is contained in:
parent
c5d88ff0d8
commit
737a4d2377
2 changed files with 2 additions and 0 deletions
|
@ -34,4 +34,5 @@ void GStatusBar::paint_event(GPaintEvent& event)
|
||||||
painter.set_clip_rect(event.rect());
|
painter.set_clip_rect(event.rect());
|
||||||
painter.fill_rect({ 0, 1, width(), height() - 1 }, Color::LightGray);
|
painter.fill_rect({ 0, 1, width(), height() - 1 }, Color::LightGray);
|
||||||
painter.draw_line({ 0, 0 }, { width() - 1, 0 }, Color::White);
|
painter.draw_line({ 0, 0 }, { width() - 1, 0 }, Color::White);
|
||||||
|
painter.draw_line({ 0, rect().bottom() }, { width() - 1, rect().bottom() }, Color::DarkGray);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,5 +53,6 @@ void GToolBar::paint_event(GPaintEvent& event)
|
||||||
Painter painter(*this);
|
Painter painter(*this);
|
||||||
painter.set_clip_rect(event.rect());
|
painter.set_clip_rect(event.rect());
|
||||||
painter.fill_rect({ 0, 0, width(), height() - 1 }, Color::LightGray);
|
painter.fill_rect({ 0, 0, width(), height() - 1 }, Color::LightGray);
|
||||||
|
painter.draw_line({ 0, 0 }, { width() - 1, 0 }, Color::White);
|
||||||
painter.draw_line({ 0, rect().bottom() }, { width() - 1, rect().bottom() }, Color::DarkGray);
|
painter.draw_line({ 0, rect().bottom() }, { width() - 1, rect().bottom() }, Color::DarkGray);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue