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:
parent
30f6cef648
commit
634c4567fe
Notes:
sideshowbarker
2024-07-17 04:57:23 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/634c4567fe Pull-request: https://github.com/SerenityOS/serenity/pull/24510 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue