summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-23 18:21:23 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-23 18:30:59 +0200
commit0af5e0b9f851da399012163de47de29f6521ea04 (patch)
treec3cddd81dbd6ed47ba2a20a57bf84d59b2b6c00f /Applications
parentfa0bab843a46365eeaa950a589d17d790896f55d (diff)
downloadserenity-0af5e0b9f851da399012163de47de29f6521ea04.zip
Applications: Tweak main layout spacing and background
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Browser/main.cpp2
-rw-r--r--Applications/Help/main.cpp3
-rw-r--r--Applications/HexEditor/HexEditorWidget.cpp2
-rw-r--r--Applications/QuickShow/main.cpp4
4 files changed, 7 insertions, 4 deletions
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp
index 0bf63bb9b4..f46dfca84c 100644
--- a/Applications/Browser/main.cpp
+++ b/Applications/Browser/main.cpp
@@ -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;
diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp
index 44364cb37d..75cf67d95f 100644
--- a/Applications/Help/main.cpp
+++ b/Applications/Help/main.cpp
@@ -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>();
diff --git a/Applications/HexEditor/HexEditorWidget.cpp b/Applications/HexEditor/HexEditorWidget.cpp
index 43d80dae0a..7b16c2364c 100644
--- a/Applications/HexEditor/HexEditorWidget.cpp
+++ b/Applications/HexEditor/HexEditorWidget.cpp
@@ -48,7 +48,7 @@
HexEditorWidget::HexEditorWidget()
{
set_layout<GUI::VerticalBoxLayout>();
- layout()->set_spacing(0);
+ layout()->set_spacing(2);
m_editor = add<HexEditor>();
diff --git a/Applications/QuickShow/main.cpp b/Applications/QuickShow/main.cpp
index dd234ee14e..f57eebc6c6 100644
--- a/Applications/QuickShow/main.cpp
+++ b/Applications/QuickShow/main.cpp
@@ -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>();