Ladybird/Qt: Flatten the buttons in the find-in-page panel

The non-flat version of these buttons look a bit out-of-place.
This commit is contained in:
Timothy Flynn 2024-06-01 08:34:29 -04:00 committed by Tim Ledbetter
parent 30f6cef648
commit 634c4567fe

View file

@ -36,6 +36,7 @@ FindInPageWidget::FindInPageWidget(Tab* tab, WebContentView* content_view)
m_previous_button->setFixedWidth(30);
m_previous_button->setIcon(create_tvg_icon_with_theme_colors("up", palette()));
m_previous_button->setToolTip("Find Previous Match");
m_previous_button->setFlat(true);
connect(m_previous_button, &QPushButton::clicked, this, [this] {
m_content_view->find_in_page_previous_match();
});
@ -44,6 +45,7 @@ FindInPageWidget::FindInPageWidget(Tab* tab, WebContentView* content_view)
m_next_button->setFixedWidth(30);
m_next_button->setIcon(create_tvg_icon_with_theme_colors("down", palette()));
m_next_button->setToolTip("Find Next Match");
m_next_button->setFlat(true);
connect(m_next_button, &QPushButton::clicked, this, [this] {
m_content_view->find_in_page_next_match();
});
@ -52,6 +54,7 @@ FindInPageWidget::FindInPageWidget(Tab* tab, WebContentView* content_view)
m_exit_button->setFixedWidth(30);
m_exit_button->setIcon(create_tvg_icon_with_theme_colors("close", palette()));
m_exit_button->setToolTip("Close Search Bar");
m_exit_button->setFlat(true);
connect(m_exit_button, &QPushButton::clicked, this, [this] {
setVisible(false);
});