Switched from dynamic CSS to build-in CSS
This commit is contained in:
parent
ca89c5d49f
commit
34e26d4bf5
@ -771,8 +771,7 @@ QString loadStyleSheet()
|
||||
QString theme = settings.value("theme", "").toString();
|
||||
|
||||
if(!theme.isEmpty()){
|
||||
// QFile qFile(":/css/drkblue");
|
||||
QFile qFile(theme); // for development only
|
||||
QFile qFile(":/css/drkblue");
|
||||
if (qFile.open(QFile::ReadOnly)) {
|
||||
styleSheet = QLatin1String(qFile.readAll());
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) :
|
||||
|
||||
/* Theme selector */
|
||||
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 */
|
||||
QDir translations(":translations");
|
||||
|
Loading…
Reference in New Issue
Block a user