mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WindowServer: Don't draw titlebar separator for titlebar-less windows.
This commit is contained in:
parent
817ac9c22b
commit
e478a2fb0a
Notes:
sideshowbarker
2024-07-19 13:57:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e478a2fb0ab
1 changed files with 2 additions and 1 deletions
|
@ -195,12 +195,13 @@ void WSWindowFrame::paint(Painter& painter)
|
|||
middle_border_color = Color::MidGray;
|
||||
}
|
||||
|
||||
painter.draw_line(titlebar_rect.bottom_left().translated(0, 1), titlebar_rect.bottom_right().translated(0, 1), Color::LightGray);
|
||||
StylePainter::paint_window_frame(painter, outer_rect);
|
||||
|
||||
if (!window.show_titlebar())
|
||||
return;
|
||||
|
||||
painter.draw_line(titlebar_rect.bottom_left().translated(0, 1), titlebar_rect.bottom_right().translated(0, 1), Color::LightGray);
|
||||
|
||||
auto leftmost_button_rect = m_buttons.is_empty() ? Rect() : m_buttons.last()->relative_rect();
|
||||
|
||||
painter.fill_rect_with_gradient(titlebar_rect, border_color, border_color2);
|
||||
|
|
Loading…
Reference in a new issue