Remove style sheets
This commit is contained in:
parent
8e61596d15
commit
e09188c4d0
5 changed files with 2 additions and 204 deletions
|
|
@ -852,21 +852,8 @@ UserSettings::setOpenVideoExternal(bool state)
|
|||
void
|
||||
UserSettings::applyTheme()
|
||||
{
|
||||
QFile stylefile;
|
||||
|
||||
if (this->theme() == QLatin1String("light")) {
|
||||
stylefile.setFileName(QStringLiteral(":/styles/styles/nheko.qss"));
|
||||
} else if (this->theme() == QLatin1String("dark")) {
|
||||
stylefile.setFileName(QStringLiteral(":/styles/styles/nheko-dark.qss"));
|
||||
} else {
|
||||
stylefile.setFileName(QStringLiteral(":/styles/styles/system.qss"));
|
||||
}
|
||||
QApplication::setPalette(Theme::paletteFromTheme(this->theme()));
|
||||
|
||||
stylefile.open(QFile::ReadOnly);
|
||||
QString stylesheet = QString(stylefile.readAll());
|
||||
|
||||
qobject_cast<QApplication *>(QApplication::instance())->setStyleSheet(stylesheet);
|
||||
QGuiApplication::setPalette(Theme::paletteFromTheme(this->theme()));
|
||||
QApplication::setPalette(Theme::paletteFromTheme(this->theme()));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue