diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 02:20:22 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 02:20:22 +0100 |
commit | d48f48663426d77da875dc0ae35bff649bc430bb (patch) | |
tree | 271de6f917cab706105c9b81b023dd507e52e363 /LibGUI/GWidget.h | |
parent | 9d7a5136810f359dd5e889e5854e71c7497211da (diff) | |
download | serenity-d48f48663426d77da875dc0ae35bff649bc430bb.zip |
LibGUI: Don't draw left and right side of surfaces that span entire window.
In other words, if a surface stretches from the left side of the window
all the way to the right side, skip shading and highlighting the sides.
This makes widgets blend together just slightly with the window. :^)
Diffstat (limited to 'LibGUI/GWidget.h')
-rw-r--r-- | LibGUI/GWidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LibGUI/GWidget.h b/LibGUI/GWidget.h index 6dfb00fde6..b05bcfa024 100644 --- a/LibGUI/GWidget.h +++ b/LibGUI/GWidget.h @@ -139,6 +139,8 @@ public: bool is_visible() const { return m_visible; } void set_visible(bool); + bool spans_entire_window_horizontally() const; + private: virtual bool is_widget() const final { return true; } |