diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-27 13:06:03 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-27 13:06:30 +0100 |
commit | 1e5f4714c7b9850d1d9a5d902309428f5f2120d8 (patch) | |
tree | 54d0b31e9e2bf903ef22629a368e418d13ccc2e2 | |
parent | e39b1f11f96d7e6865cb9187a8f5a72ea320a6b3 (diff) | |
download | serenity-1e5f4714c7b9850d1d9a5d902309428f5f2120d8.zip |
HackStudio: Tweak EditorWrapper layouts a bit to make things look nice
-rw-r--r-- | DevTools/HackStudio/EditorWrapper.cpp | 7 | ||||
-rw-r--r-- | DevTools/HackStudio/main.cpp | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/DevTools/HackStudio/EditorWrapper.cpp b/DevTools/HackStudio/EditorWrapper.cpp index 4192e83f15..452b16c6a6 100644 --- a/DevTools/HackStudio/EditorWrapper.cpp +++ b/DevTools/HackStudio/EditorWrapper.cpp @@ -14,20 +14,21 @@ EditorWrapper::EditorWrapper(GWidget* parent) auto label_wrapper = GWidget::construct(this); label_wrapper->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); - label_wrapper->set_preferred_size(0, 16); + label_wrapper->set_preferred_size(0, 14); label_wrapper->set_fill_with_background_color(true); label_wrapper->set_layout(make<GBoxLayout>(Orientation::Horizontal)); + label_wrapper->layout()->set_margins({ 2, 0, 2, 0 }); m_filename_label = GLabel::construct("(Untitled)", label_wrapper); m_filename_label->set_font(Font::default_bold_font()); m_filename_label->set_text_alignment(TextAlignment::CenterLeft); m_filename_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); - m_filename_label->set_preferred_size(0, 16); + m_filename_label->set_preferred_size(0, 14); m_cursor_label = GLabel::construct("(Cursor)", label_wrapper); m_cursor_label->set_text_alignment(TextAlignment::CenterRight); m_cursor_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); - m_cursor_label->set_preferred_size(0, 16); + m_cursor_label->set_preferred_size(0, 14); m_editor = Editor::construct(this); m_editor->set_ruler_visible(true); diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index 9ab890e34d..54696cc157 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -86,6 +86,7 @@ int main(int argc, char** argv) g_project_list_view->set_preferred_size(200, 0); auto inner_splitter = GSplitter::construct(Orientation::Vertical, outer_splitter); + inner_splitter->layout()->set_margins({ 0, 3, 0, 0 }); add_new_editor(inner_splitter); add_new_editor(inner_splitter); |