mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
Minor GUI API things + make Button corners properly transparent.
This commit is contained in:
parent
f7261d7b26
commit
1d914cbd84
5 changed files with 10 additions and 14 deletions
|
@ -25,7 +25,9 @@ Painter::Painter(Widget& widget)
|
|||
m_clip_rect = widget.relativeRect();
|
||||
|
||||
#ifdef DEBUG_WIDGET_UNDERDRAW
|
||||
fill_rect(widget.rect(), Color::Red);
|
||||
// If the widget is not opaque, let's not mess it up with debugging color.
|
||||
if (widget.fillWithBackgroundColor())
|
||||
fill_rect(widget.rect(), Color::Red);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue