Switched from dynamic CSS to build-in CSS

This commit is contained in:
crowning2 2015-03-08 19:43:31 +01:00
parent ca89c5d49f
commit 34e26d4bf5
2 changed files with 2 additions and 3 deletions

View File

@ -771,8 +771,7 @@ QString loadStyleSheet()
QString theme = settings.value("theme", "").toString(); QString theme = settings.value("theme", "").toString();
if(!theme.isEmpty()){ if(!theme.isEmpty()){
// QFile qFile(":/css/drkblue"); QFile qFile(":/css/drkblue");
QFile qFile(theme); // for development only
if (qFile.open(QFile::ReadOnly)) { if (qFile.open(QFile::ReadOnly)) {
styleSheet = QLatin1String(qFile.readAll()); styleSheet = QLatin1String(qFile.readAll());
} }

View File

@ -72,7 +72,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) :
/* Theme selector */ /* Theme selector */
ui->theme->addItem(QString("(") + tr("default") + QString(")"), QVariant("")); ui->theme->addItem(QString("(") + tr("default") + QString(")"), QVariant(""));
ui->theme->addItem(QString("DRK-blue"), QVariant("drkblue.css")); // ToDo: remove .css when we finally use resources ui->theme->addItem(QString("DRK-blue"), QVariant("drkblue"));
/* Language selector */ /* Language selector */
QDir translations(":translations"); QDir translations(":translations");