Skip to content

Commit

Permalink
Applications: Tweak main layout spacing and background
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Apr 23, 2020
1 parent fa0bab8 commit 0af5e0b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Applications/Browser/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion Applications/Help/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down
2 changes: 1 addition & 1 deletion Applications/HexEditor/HexEditorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
HexEditorWidget::HexEditorWidget()
{
set_layout<GUI::VerticalBoxLayout>();
layout()->set_spacing(0);
layout()->set_spacing(2);

m_editor = add<HexEditor>();

Expand Down
4 changes: 3 additions & 1 deletion Applications/QuickShow/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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>();
Expand Down
2 changes: 1 addition & 1 deletion DevTools/HackStudio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 0af5e0b

Please sign in to comment.