mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
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();
|
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());
|
||||||
}
|
}
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user