Merge branch '0902-newfrontend' into 'new-frontend'

Modified scrollBar style in detail page.

See merge request kylin-desktop/ukui-search!147
This commit is contained in:
纪笑旭 2021-09-23 12:51:19 +00:00
commit 35e3835a03
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);