[nostalgia/studio] Use QDark theme

This commit is contained in:
2020-09-05 19:30:17 -05:00
parent 5cd7f0cecf
commit 8204188008
3 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,7 @@ add_executable(
target_link_libraries(
nostalgia-studio
QDarkStyle
NostalgiaStudio
NostalgiaPack
)

View File

@ -1,5 +1,5 @@
/*
* Copyright 2016 - 2019 gtalent2@gmail.com
* Copyright 2016 - 2020 gary@drinkingtea.net
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
@ -9,6 +9,7 @@
#include <QApplication>
#include <QDebug>
#include <ox/clargs/clargs.hpp>
#include <qdark/theme.hpp>
#include "mainwindow.hpp"
using namespace nostalgia::studio;
@ -21,6 +22,9 @@ int main(int argc, char **args) {
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, args);
// load theme
qdark::load(&app);
try {
MainWindow w(argProfilePath);
app.setApplicationName(w.windowTitle());