aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.cpp7
-rw-r--r--release/css/default.css6
2 files changed, 13 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();
diff --git a/release/css/default.css b/release/css/default.css
new file mode 100644
index 0000000..8b81422
--- /dev/null
+++ b/release/css/default.css
@@ -0,0 +1,6 @@
+
+/*
+ QLabel, QAbstractButton {
+ font: bold;
+}
+*/