mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
Browser: Don't show frame around the web view in full-screen mode
Let's use all the space we have available. :^)
This commit is contained in:
parent
5ddf7e993c
commit
36354406db
2 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -288,6 +288,12 @@ Tab::Tab(Type type)
|
||||||
tab_widget->set_bar_visible(!is_fullscreen && tab_widget->children().size() > 1);
|
tab_widget->set_bar_visible(!is_fullscreen && tab_widget->children().size() > 1);
|
||||||
m_toolbar_container->set_visible(!is_fullscreen);
|
m_toolbar_container->set_visible(!is_fullscreen);
|
||||||
m_statusbar->set_visible(!is_fullscreen);
|
m_statusbar->set_visible(!is_fullscreen);
|
||||||
|
|
||||||
|
if (is_fullscreen) {
|
||||||
|
view().set_frame_thickness(0);
|
||||||
|
} else {
|
||||||
|
view().set_frame_thickness(2);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
this));
|
this));
|
||||||
|
|
||||||
|
@ -534,7 +540,7 @@ void Tab::context_menu_requested(const Gfx::IntPoint& screen_position)
|
||||||
m_tab_context_menu->popup(screen_position);
|
m_tab_context_menu->popup(screen_position);
|
||||||
}
|
}
|
||||||
|
|
||||||
GUI::Widget& Tab::view()
|
GUI::ScrollableWidget& Tab::view()
|
||||||
{
|
{
|
||||||
if (m_type == Type::InProcessWebView)
|
if (m_type == Type::InProcessWebView)
|
||||||
return *m_page_view;
|
return *m_page_view;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -74,7 +74,7 @@ public:
|
||||||
const String& title() const { return m_title; }
|
const String& title() const { return m_title; }
|
||||||
const Gfx::Bitmap* icon() const { return m_icon; }
|
const Gfx::Bitmap* icon() const { return m_icon; }
|
||||||
|
|
||||||
GUI::Widget& view();
|
GUI::ScrollableWidget& view();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit Tab(Type);
|
explicit Tab(Type);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue