From 1dfb1789077669ae134655320d708307d808e8df Mon Sep 17 00:00:00 2001 From: iaom <18504285112@163.com> Date: Thu, 23 Sep 2021 19:56:54 +0800 Subject: [PATCH] Modified scrollBar style in detail page. --- frontend/control/stack-pages/search-page-section.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/control/stack-pages/search-page-section.cpp b/frontend/control/stack-pages/search-page-section.cpp index 5e8c767..43218f3 100644 --- a/frontend/control/stack-pages/search-page-section.cpp +++ b/frontend/control/stack-pages/search-page-section.cpp @@ -435,6 +435,9 @@ void DetailArea::initUi() QPalette pal = palette(); // pal.setColor(QPalette::Base, DETAIL_BACKGROUND_COLOR); pal.setColor(QPalette::Window, DETAIL_BACKGROUND_COLOR); + QPalette scroll_bar_pal = this->verticalScrollBar()->palette(); + scroll_bar_pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR); + this->verticalScrollBar()->setPalette(scroll_bar_pal); this->setPalette(pal); this->setFrameShape(QFrame::Shape::NoFrame); this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);