aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 10b79e3..2330e7c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -63,6 +63,13 @@ int main(int argc, char *argv[])
#endif
app.installTranslator(&translator2);
+ // css
+ QFile file(qApp->applicationDirPath() + "/css/default.css");
+ file.open(QFile::ReadOnly);
+ QString styleSheet = QLatin1String(file.readAll());
+ qApp->setStyleSheet(styleSheet);
+ //qDebug() << "css: " << styleSheet;
+
GpgWin *window = new GpgWin();
window->show();