[nostalgia/studio] Use QDark theme
This commit is contained in:
parent
5cd7f0cecf
commit
8204188008
@ -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)
|
||||
|
@ -11,6 +11,7 @@ add_executable(
|
||||
|
||||
target_link_libraries(
|
||||
nostalgia-studio
|
||||
QDarkStyle
|
||||
NostalgiaStudio
|
||||
NostalgiaPack
|
||||
)
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user