mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 05:54:58 +00:00
LibGUI: Always paint vertical lines for Frames in unmaximized windows
Fixes incorrect thread highlighting for ResourceGraph panels. Prior to FrameStyles, these graphs were painted as faux-panels, this is, sunken containers with a thickness of 1, and weren't subject to the bug.
This commit is contained in:
parent
222a1b8b95
commit
af8cd477b4
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibGfx/StylePainter.h>
|
||||
|
||||
|
@ -60,7 +61,8 @@ void Frame::paint_event(PaintEvent& event)
|
|||
|
||||
Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
Gfx::StylePainter::paint_frame(painter, rect(), palette(), m_style, spans_entire_window_horizontally());
|
||||
bool skip_vertical_lines = window()->is_maximized() && spans_entire_window_horizontally();
|
||||
Gfx::StylePainter::paint_frame(painter, rect(), palette(), m_style, skip_vertical_lines);
|
||||
}
|
||||
|
||||
Gfx::IntRect Frame::children_clip_rect() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue