From 634c4567fe0d978a1cbb04c740b2971b02d2fd6b Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 1 Jun 2024 08:34:29 -0400 Subject: [PATCH] Ladybird/Qt: Flatten the buttons in the find-in-page panel The non-flat version of these buttons look a bit out-of-place. --- Ladybird/Qt/FindInPageWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ladybird/Qt/FindInPageWidget.cpp b/Ladybird/Qt/FindInPageWidget.cpp index eb73cc71799..6f1ff23cd9e 100644 --- a/Ladybird/Qt/FindInPageWidget.cpp +++ b/Ladybird/Qt/FindInPageWidget.cpp @@ -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); });