mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
HackStudio: Move the "Find in files" button in line with the search box
This commit is contained in:
parent
296f87fa7f
commit
9e855376dd
Notes:
sideshowbarker
2024-07-19 08:01:14 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/9e855376dd4 Pull-request: https://github.com/SerenityOS/serenity/pull/1560
@ -130,12 +130,18 @@ static RefPtr<SearchResultsModel> find_in_files(const StringView& text)
|
||||
FindInFilesWidget::FindInFilesWidget()
|
||||
{
|
||||
set_layout<GUI::VerticalBoxLayout>();
|
||||
m_textbox = add<GUI::TextBox>();
|
||||
m_textbox->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
m_textbox->set_preferred_size(0, 20);
|
||||
m_button = add<GUI::Button>("Find in files");
|
||||
m_button->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
m_button->set_preferred_size(0, 20);
|
||||
|
||||
auto& top_container = add<Widget>();
|
||||
top_container.set_layout<GUI::HorizontalBoxLayout>();
|
||||
top_container.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
top_container.set_preferred_size(0, 20);
|
||||
|
||||
m_textbox = top_container.add<GUI::TextBox>();
|
||||
m_textbox->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fill);
|
||||
|
||||
m_button = top_container.add<GUI::Button>("Find in files");
|
||||
m_button->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill);
|
||||
m_button->set_preferred_size(100, 0);
|
||||
|
||||
m_result_view = add<GUI::TableView>();
|
||||
m_result_view->set_size_columns_to_fit_content(true);
|
||||
|
Loading…
Reference in New Issue
Block a user