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:
parent
fa0bab843a
commit
0af5e0b9f8
5 changed files with 8 additions and 5 deletions
|
@ -101,7 +101,7 @@ int main(int argc, char** argv)
|
||||||
auto& widget = window->set_main_widget<GUI::Widget>();
|
auto& widget = window->set_main_widget<GUI::Widget>();
|
||||||
widget.set_fill_with_background_color(true);
|
widget.set_fill_with_background_color(true);
|
||||||
widget.set_layout<GUI::VerticalBoxLayout>();
|
widget.set_layout<GUI::VerticalBoxLayout>();
|
||||||
widget.layout()->set_spacing(0);
|
widget.layout()->set_spacing(2);
|
||||||
|
|
||||||
bool bookmarksbar_enabled = true;
|
bool bookmarksbar_enabled = true;
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,8 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
auto& widget = window->set_main_widget<GUI::Widget>();
|
auto& widget = window->set_main_widget<GUI::Widget>();
|
||||||
widget.set_layout<GUI::VerticalBoxLayout>();
|
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_container = widget.add<GUI::ToolBarContainer>();
|
||||||
auto& toolbar = toolbar_container.add<GUI::ToolBar>();
|
auto& toolbar = toolbar_container.add<GUI::ToolBar>();
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
HexEditorWidget::HexEditorWidget()
|
HexEditorWidget::HexEditorWidget()
|
||||||
{
|
{
|
||||||
set_layout<GUI::VerticalBoxLayout>();
|
set_layout<GUI::VerticalBoxLayout>();
|
||||||
layout()->set_spacing(0);
|
layout()->set_spacing(2);
|
||||||
|
|
||||||
m_editor = add<HexEditor>();
|
m_editor = add<HexEditor>();
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
#include <LibGUI/ToolBarContainer.h>
|
#include <LibGUI/ToolBarContainer.h>
|
||||||
#include <LibGUI/Window.h>
|
#include <LibGUI/Window.h>
|
||||||
#include <LibGfx/Bitmap.h>
|
#include <LibGfx/Bitmap.h>
|
||||||
|
#include <LibGfx/Palette.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.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"));
|
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-image.png"));
|
||||||
|
|
||||||
auto& root_widget = window->set_main_widget<GUI::Widget>();
|
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.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& toolbar_container = root_widget.add<GUI::ToolBarContainer>();
|
||||||
auto& main_toolbar = toolbar_container.add<GUI::ToolBar>();
|
auto& main_toolbar = toolbar_container.add<GUI::ToolBar>();
|
||||||
|
|
|
@ -150,7 +150,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
widget.set_fill_with_background_color(true);
|
widget.set_fill_with_background_color(true);
|
||||||
widget.set_layout<GUI::VerticalBoxLayout>();
|
widget.set_layout<GUI::VerticalBoxLayout>();
|
||||||
widget.layout()->set_spacing(0);
|
widget.layout()->set_spacing(2);
|
||||||
|
|
||||||
StringBuilder path;
|
StringBuilder path;
|
||||||
path.append(getenv("PATH"));
|
path.append(getenv("PATH"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue