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 /DevTools/HackStudio/EditorWrapper.cpp | |
parent | e39b1f11f96d7e6865cb9187a8f5a72ea320a6b3 (diff) | |
download | serenity-1e5f4714c7b9850d1d9a5d902309428f5f2120d8.zip |
HackStudio: Tweak EditorWrapper layouts a bit to make things look nice
Diffstat (limited to 'DevTools/HackStudio/EditorWrapper.cpp')
-rw-r--r-- | DevTools/HackStudio/EditorWrapper.cpp | 7 |
1 files changed, 4 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); |