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

Modified hover color of list view.

See merge request kylin-desktop/ukui-search!93
This commit is contained in:
纪笑旭 2021-08-16 01:42:10 +00:00
commit a4775c889e
1 changed files with 5 additions and 2 deletions

View File

@ -95,8 +95,11 @@ void ResultArea::initUi()
{
// this->verticalScrollBar()->setProperty("drawScrollBarGroove", false);
QPalette pal = palette();
pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR);
QPalette scroll_bar_pal = this->verticalScrollBar()->palette();
// pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR);
pal.setColor(QPalette::Window, RESULT_BACKGROUND_COLOR);
scroll_bar_pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR);
this->verticalScrollBar()->setPalette(scroll_bar_pal);
this->setFrameShape(QFrame::Shape::NoFrame);
this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
@ -157,7 +160,7 @@ DetailArea::DetailArea(QWidget *parent) : QScrollArea(parent)
void DetailArea::initUi()
{
QPalette pal = palette();
pal.setColor(QPalette::Base, DETAIL_BACKGROUND_COLOR);
// pal.setColor(QPalette::Base, DETAIL_BACKGROUND_COLOR);
pal.setColor(QPalette::Window, DETAIL_BACKGROUND_COLOR);
this->setPalette(pal);
this->setFrameShape(QFrame::Shape::NoFrame);