mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 20:36:58 +03:00
Merge pull request #600 from TheLastRar/reset-stylesheet
Resolves https://github.com/PrismLauncher/PrismLauncher/issues/510
This commit is contained in:
commit
aaef448959
1 changed files with 4 additions and 9 deletions
|
|
@ -6,19 +6,14 @@
|
|||
|
||||
void ITheme::apply(bool)
|
||||
{
|
||||
APPLICATION->setStyleSheet(QString());
|
||||
QApplication::setStyle(QStyleFactory::create(qtTheme()));
|
||||
if(hasColorScheme())
|
||||
{
|
||||
if (hasColorScheme()) {
|
||||
QApplication::setPalette(colorScheme());
|
||||
}
|
||||
if(hasStyleSheet())
|
||||
{
|
||||
if (hasStyleSheet())
|
||||
APPLICATION->setStyleSheet(appStyleSheet());
|
||||
}
|
||||
else
|
||||
{
|
||||
APPLICATION->setStyleSheet(QString());
|
||||
}
|
||||
|
||||
QDir::setSearchPaths("theme", searchPaths());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue