summaryrefslogtreecommitdiff
path: root/gui/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main.cc')
-rw-r--r--gui/main.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/gui/main.cc b/gui/main.cc
index eb0129e..9877a3c 100644
--- a/gui/main.cc
+++ b/gui/main.cc
@@ -15,10 +15,12 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-#include "pipe_spec.h"
#include "gui.h"
#include "logger.h"
+#include "pipe_spec.h"
#include <QApplication>
+#include <QFile>
+#include <QFontDatabase>
#include <getopt.h>
#include <iostream>
@@ -84,6 +86,16 @@ int main(int argc, char **argv)
global_log->log(INFO, "Starting QT...");
QApplication a(argc, argv);
+
+ int fId = QFontDatabase::addApplicationFont(
+ ":/resources/BigBlueTermPlusNerdFontMono-Regular.ttf");
+ QFile ssf(":/resources/styles.qss");
+ QString f = QFontDatabase::applicationFontFamilies(fId).at(0);
+
+ ssf.open(QFile::ReadOnly);
+ QString ss = QLatin1String(ssf.readAll());
+ a.setStyleSheet(ss);
+
GUI w;
w.show();
return a.exec();