mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
Browser: Remove padding from the main TabWidget
This makes the active tab "take over" the whole window UI, even though it's actually inside a TabWidget.
This commit is contained in:
parent
1587b53001
commit
dfe8dea2ac
Notes:
sideshowbarker
2024-07-19 07:19:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dfe8dea2aca
2 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,7 @@ static const char* bookmarks_filename = "/home/anon/bookmarks.json";
|
|||
Tab::Tab()
|
||||
{
|
||||
auto& widget = *this;
|
||||
auto& layout = set_layout<GUI::VerticalBoxLayout>();
|
||||
layout.set_margins({ 1, 1, 1, 1 });
|
||||
set_layout<GUI::VerticalBoxLayout>();
|
||||
|
||||
bool bookmarksbar_enabled = true;
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ int main(int argc, char** argv)
|
|||
widget.layout()->set_spacing(2);
|
||||
|
||||
auto& tab_widget = widget.add<GUI::TabWidget>();
|
||||
tab_widget.set_container_padding(0);
|
||||
|
||||
tab_widget.on_change = [&](auto& active_widget) {
|
||||
auto& tab = static_cast<Browser::Tab&>(active_widget);
|
||||
|
|
Loading…
Add table
Reference in a new issue