diff --git a/CMakeLists.txt b/CMakeLists.txt index eda664fd..d44179fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,8 @@ include_directories(SYSTEM deps/ox/src) if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA") add_subdirectory(deps/gbastartup) +elseif(NOSTALGIA_BUILD_STUDIO) + add_subdirectory(deps/QDark) endif() add_subdirectory(src) diff --git a/src/nostalgia/studio/CMakeLists.txt b/src/nostalgia/studio/CMakeLists.txt index 7743b755..ca7af9ca 100644 --- a/src/nostalgia/studio/CMakeLists.txt +++ b/src/nostalgia/studio/CMakeLists.txt @@ -11,6 +11,7 @@ add_executable( target_link_libraries( nostalgia-studio + QDarkStyle NostalgiaStudio NostalgiaPack ) diff --git a/src/nostalgia/studio/main.cpp b/src/nostalgia/studio/main.cpp index 2c07301c..dc56c6fb 100644 --- a/src/nostalgia/studio/main.cpp +++ b/src/nostalgia/studio/main.cpp @@ -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 #include #include +#include #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());