mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 03:45:07 +00:00
WindowServer+LibGUI: Remove unused Window::show_titlebar() flag
Nobody was using this flag, so let's stop maintaining it. It's easy to add it back if we ever want the behavior.
This commit is contained in:
parent
2ac1fbef4f
commit
bb7eb3e104
6 changed files with 2 additions and 17 deletions
|
@ -220,9 +220,6 @@ void WindowFrame::paint_normal_frame(Gfx::Painter& painter)
|
|||
|
||||
Gfx::StylePainter::paint_window_frame(painter, outer_rect, palette);
|
||||
|
||||
if (!window.show_titlebar())
|
||||
return;
|
||||
|
||||
auto titlebar_rect = title_bar_rect();
|
||||
auto titlebar_icon_rect = title_bar_icon_rect();
|
||||
auto titlebar_inner_rect = title_bar_text_rect();
|
||||
|
@ -278,15 +275,14 @@ void WindowFrame::paint(Gfx::Painter& painter)
|
|||
static Gfx::Rect frame_rect_for_window(Window& window, const Gfx::Rect& rect)
|
||||
{
|
||||
auto type = window.type();
|
||||
auto offset = !window.show_titlebar() ? (window_titlebar_height + 1) : 0;
|
||||
|
||||
switch (type) {
|
||||
case WindowType::Normal:
|
||||
return {
|
||||
rect.x() - 4,
|
||||
rect.y() - window_titlebar_height - 6 + offset,
|
||||
rect.y() - window_titlebar_height - 6,
|
||||
rect.width() + 8,
|
||||
rect.height() + 10 + window_titlebar_height - offset
|
||||
rect.height() + 10 + window_titlebar_height
|
||||
};
|
||||
case WindowType::Notification:
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue