dark style

This commit is contained in:
2019-02-06 16:57:20 +01:00
parent 10a6da6b04
commit a6c97691ed
45 changed files with 2040 additions and 11 deletions
+18 -1
View File
@@ -1,11 +1,28 @@
#include "cmainwindow.h"
#include <QApplication>
#include <QFile>
#include <QTextStream>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QFile f(":qdarkstyle/style.qss");
if (!f.exists())
{
printf("Unable to set stylesheet, file not found\n");
}
else
{
f.open(QFile::ReadOnly | QFile::Text);
QTextStream ts(&f);
a.setStyleSheet(ts.readAll());
}
cMainWindow w;
w.show();
w.showMaximized();
return a.exec();
}