Merge pull request #629 from flylai/patch-1

After using flatwhite/psblack, switch back to breeze, bgcolor can't restored to original color
This commit is contained in:
DuckSoft 2020-05-25 23:40:33 +08:00 committed by GitHub
commit 3df198e8a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

2
3rdparty/uistyles vendored

@ -1 +1 @@
Subproject commit 9417ac243e55b0c1171a6042de58cebab812b6cb Subproject commit e313c5dbbe6fa1008c293492ef40797f718a4817

View File

@ -59,8 +59,6 @@ namespace Qv2ray::ui::styles
qApp->processEvents(); qApp->processEvents();
// //
const auto content = StringFromFile(s.qssPath); const auto content = StringFromFile(s.qssPath);
QString paletteColor = content.mid(20, 7);
qApp->setPalette(QPalette(QColor(paletteColor)));
qApp->setStyleSheet(content); qApp->setStyleSheet(content);
return true; return true;
} }