diff options
author | Nico Weber <thakis@chromium.org> | 2021-01-24 13:06:31 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-24 22:02:23 +0100 |
commit | 8bb9c667fdcd8fad7efd9110e47abba43173e700 (patch) | |
tree | fad31182f091c8f525d28aa5faac9468718b89f6 /Userland/Applications/FontEditor | |
parent | 330ab52ddb8befa74a18a86ee53c033e1267631a (diff) | |
download | serenity-8bb9c667fdcd8fad7efd9110e47abba43173e700.zip |
FontEditor: Remove "Save" and "Quit" buttons
We have both the normal menu items and keyboard shortcuts for these by
now. No need to have always-visible buttons -- makes the app more
consistent with the other apps, and makes it use up less vertical space.
Diffstat (limited to 'Userland/Applications/FontEditor')
-rw-r--r-- | Userland/Applications/FontEditor/FontEditor.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/Userland/Applications/FontEditor/FontEditor.cpp b/Userland/Applications/FontEditor/FontEditor.cpp index 56cbf3e06b..b291fd5262 100644 --- a/Userland/Applications/FontEditor/FontEditor.cpp +++ b/Userland/Applications/FontEditor/FontEditor.cpp @@ -255,26 +255,6 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Gfx::BitmapFont>&& fixed_width_checkbox.set_text("Fixed width"); fixed_width_checkbox.set_checked(m_edited_font->is_fixed_width()); - // Bottom - auto& bottom_container = add<GUI::Widget>(); - bottom_container.set_layout<GUI::HorizontalBoxLayout>(); - bottom_container.layout()->set_margins({ 8, 0, 8, 8 }); - bottom_container.set_fixed_height(32); - - bottom_container.layout()->add_spacer(); - - auto& save_button = bottom_container.add<GUI::Button>(); - save_button.set_fixed_size(80, 22); - save_button.set_text("Save"); - save_button.on_click = [this](auto) { save_as(m_path); }; - - auto& quit_button = bottom_container.add<GUI::Button>(); - quit_button.set_fixed_size(80, 22); - quit_button.set_text("Quit"); - quit_button.on_click = [](auto) { - exit(0); - }; - // Event hanglers auto update_demo = [&] { demo_label_1.update(); @@ -286,7 +266,7 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Gfx::BitmapFont>&& right_site_width = max(right_site_width, m_glyph_map_widget->preferred_width()); m_preferred_width = m_glyph_editor_widget->width() + right_site_width + 20; - m_preferred_height = m_glyph_map_widget->relative_rect().height() + 2 * m_edited_font->glyph_height() + 380; + m_preferred_height = m_glyph_map_widget->relative_rect().height() + 2 * m_edited_font->glyph_height() + 346; }; m_glyph_editor_widget->on_glyph_altered = [this, update_demo](u8 glyph) { |