Modified scrollBar style in detail page.

This commit is contained in:
iaom 2021-09-23 19:56:54 +08:00
parent 76cf09907d
commit 1dfb178907
1 changed files with 3 additions and 0 deletions

View File

@ -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);