mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-07-21 12:37:25 +02:00
Remove dark mode workaround
https://bugreports.qt.io/browse/QTBUG-72028?focusedCommentId=704716&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-704716
This commit is contained in:
parent
11d89432a0
commit
f942ce16dc
@ -1,9 +1,10 @@
|
|||||||
// SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
|
// SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
|
||||||
|
|
||||||
#include "ScreenPlay/app.h"
|
#include "ScreenPlay/app.h"
|
||||||
#include <QApplication>
|
#include <QGuiApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QStyleFactory>
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
#include <sentry.h>
|
#include <sentry.h>
|
||||||
@ -22,12 +23,7 @@ int main(int argc, char* argv[])
|
|||||||
qputenv("QT_MEDIA_BACKEND", "ffmpeg");
|
qputenv("QT_MEDIA_BACKEND", "ffmpeg");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
QGuiApplication qtGuiApp(argc, argv);
|
||||||
// https://bugreports.qt.io/browse/QTBUG-72028
|
|
||||||
qputenv("QT_QPA_PLATFORM", "windows:darkmode=2");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
QApplication qtGuiApp(argc, argv);
|
|
||||||
ScreenPlay::App app;
|
ScreenPlay::App app;
|
||||||
|
|
||||||
if (app.m_isAnotherScreenPlayInstanceRunning) {
|
if (app.m_isAnotherScreenPlayInstanceRunning) {
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
Style=Material
|
Style=Material
|
||||||
|
|
||||||
[Material]
|
[Material]
|
||||||
Theme=Light
|
Theme=System
|
||||||
Accent=Orange
|
Accent=Orange
|
||||||
Variant=Dense
|
Variant=Dense
|
||||||
|
Loading…
Reference in New Issue
Block a user