1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:35:09 +00:00

TextEditor: Various UI text tweaks

This commit is contained in:
Andreas Kling 2020-01-23 21:17:57 +01:00
parent 9e2c595c64
commit ebfb3d91e2

View file

@ -200,12 +200,12 @@ TextEditorWidget::TextEditorWidget()
} }
}); });
m_find_previous_button = GButton::construct("Find Previous", m_find_widget); m_find_previous_button = GButton::construct("Find previous", m_find_widget);
m_find_previous_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); m_find_previous_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
m_find_previous_button->set_preferred_size(150, 0); m_find_previous_button->set_preferred_size(150, 0);
m_find_previous_button->set_action(*m_find_previous_action); m_find_previous_button->set_action(*m_find_previous_action);
m_find_next_button = GButton::construct("Find Next", m_find_widget); m_find_next_button = GButton::construct("Find next", m_find_widget);
m_find_next_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); m_find_next_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
m_find_next_button->set_preferred_size(150, 0); m_find_next_button->set_preferred_size(150, 0);
m_find_next_button->set_action(*m_find_next_action); m_find_next_button->set_action(*m_find_next_action);
@ -219,17 +219,17 @@ TextEditorWidget::TextEditorWidget()
m_editor->set_focus(true); m_editor->set_focus(true);
}; };
m_replace_previous_button = GButton::construct("Replace Previous", m_replace_widget); m_replace_previous_button = GButton::construct("Replace previous", m_replace_widget);
m_replace_previous_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); m_replace_previous_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
m_replace_previous_button->set_preferred_size(100, 0); m_replace_previous_button->set_preferred_size(100, 0);
m_replace_previous_button->set_action(*m_replace_previous_action); m_replace_previous_button->set_action(*m_replace_previous_action);
m_replace_next_button = GButton::construct("Replace Next", m_replace_widget); m_replace_next_button = GButton::construct("Replace next", m_replace_widget);
m_replace_next_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); m_replace_next_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
m_replace_next_button->set_preferred_size(100, 0); m_replace_next_button->set_preferred_size(100, 0);
m_replace_next_button->set_action(*m_replace_next_action); m_replace_next_button->set_action(*m_replace_next_action);
m_replace_all_button = GButton::construct("Replace ALl", m_replace_widget); m_replace_all_button = GButton::construct("Replace all", m_replace_widget);
m_replace_all_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); m_replace_all_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
m_replace_all_button->set_preferred_size(100, 0); m_replace_all_button->set_preferred_size(100, 0);
m_replace_all_button->set_action(*m_replace_all_action); m_replace_all_button->set_action(*m_replace_all_action);
@ -243,7 +243,7 @@ TextEditorWidget::TextEditorWidget()
m_editor->set_focus(true); m_editor->set_focus(true);
}; };
m_find_replace_action = GAction::create("Find/Replace..", { Mod_Ctrl, Key_F }, load_png("/res/icons/16x16/find.png"), [this](auto&) { m_find_replace_action = GAction::create("Find/Replace...", { Mod_Ctrl, Key_F }, load_png("/res/icons/16x16/find.png"), [this](auto&) {
m_find_replace_widget->set_visible(true); m_find_replace_widget->set_visible(true);
m_find_widget->set_visible(true); m_find_widget->set_visible(true);
m_replace_widget->set_visible(true); m_replace_widget->set_visible(true);