1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

Applications: Tweak main layout spacing and background

This commit is contained in:
Andreas Kling 2020-04-23 18:21:23 +02:00
parent fa0bab843a
commit 0af5e0b9f8
5 changed files with 8 additions and 5 deletions

View file

@ -101,7 +101,7 @@ int main(int argc, char** argv)
auto& widget = window->set_main_widget<GUI::Widget>();
widget.set_fill_with_background_color(true);
widget.set_layout<GUI::VerticalBoxLayout>();
widget.layout()->set_spacing(0);
widget.layout()->set_spacing(2);
bool bookmarksbar_enabled = true;

View file

@ -82,7 +82,8 @@ int main(int argc, char* argv[])
auto& widget = window->set_main_widget<GUI::Widget>();
widget.set_layout<GUI::VerticalBoxLayout>();
widget.layout()->set_spacing(0);
widget.set_fill_with_background_color(true);
widget.layout()->set_spacing(2);
auto& toolbar_container = widget.add<GUI::ToolBarContainer>();
auto& toolbar = toolbar_container.add<GUI::ToolBar>();

View file

@ -48,7 +48,7 @@
HexEditorWidget::HexEditorWidget()
{
set_layout<GUI::VerticalBoxLayout>();
layout()->set_spacing(0);
layout()->set_spacing(2);
m_editor = add<HexEditor>();

View file

@ -41,6 +41,7 @@
#include <LibGUI/ToolBarContainer.h>
#include <LibGUI/Window.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Palette.h>
#include <stdio.h>
#include <string.h>
@ -69,8 +70,9 @@ int main(int argc, char** argv)
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-image.png"));
auto& root_widget = window->set_main_widget<GUI::Widget>();
root_widget.set_fill_with_background_color(true);
root_widget.set_layout<GUI::VerticalBoxLayout>();
root_widget.layout()->set_spacing(0);
root_widget.layout()->set_spacing(2);
auto& toolbar_container = root_widget.add<GUI::ToolBarContainer>();
auto& main_toolbar = toolbar_container.add<GUI::ToolBar>();

View file

@ -150,7 +150,7 @@ int main(int argc, char** argv)
widget.set_fill_with_background_color(true);
widget.set_layout<GUI::VerticalBoxLayout>();
widget.layout()->set_spacing(0);
widget.layout()->set_spacing(2);
StringBuilder path;
path.append(getenv("PATH"));