mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-08 20:28:51 -04:00
fix(UI): Overhaul Rainbow Mode architecture
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -178,6 +178,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
|
|||||||
#include "citron/main.h"
|
#include "citron/main.h"
|
||||||
#include "citron/play_time_manager.h"
|
#include "citron/play_time_manager.h"
|
||||||
#include "citron/startup_checks.h"
|
#include "citron/startup_checks.h"
|
||||||
|
#include "citron/util/rainbow_style.h"
|
||||||
#include "citron/uisettings.h"
|
#include "citron/uisettings.h"
|
||||||
#ifdef CITRON_USE_AUTO_UPDATER
|
#ifdef CITRON_USE_AUTO_UPDATER
|
||||||
#include "citron/updater/updater_dialog.h"
|
#include "citron/updater/updater_dialog.h"
|
||||||
@@ -6209,7 +6210,9 @@ int main(int argc, char* argv[]) {
|
|||||||
setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
GMainWindow main_window{std::move(config), has_broken_vulkan};
|
GMainWindow main_window{std::move(config), has_broken_vulkan};
|
||||||
// After settings have been loaded by GMainWindow, apply the filter
|
|
||||||
|
app.setStyle(new RainbowStyle(app.style()));
|
||||||
|
|
||||||
main_window.show();
|
main_window.show();
|
||||||
|
|
||||||
QObject::connect(&app, &QGuiApplication::applicationStateChanged, &main_window,
|
QObject::connect(&app, &QGuiApplication::applicationStateChanged, &main_window,
|
||||||
|
|||||||
Reference in New Issue
Block a user