Skip to content

Commit

Permalink
Update appsupport.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Dec 27, 2024
1 parent 85e779d commit b83e0fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/core/appsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,8 @@ void AppSupport::checkFFmpeg(const bool &isRenderer)

void AppSupport::initEnv(const bool &isRenderer)
{
#if defined(Q_OS_WIN)
Q_UNUSED(isRenderer)
#if defined(Q_OS_WIN)
// windows theme integration
#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
// Set window title bar color based on dark/light theme
Expand All @@ -988,14 +988,9 @@ void AppSupport::initEnv(const bool &isRenderer)
if (registry.value("AppsUseLightTheme", 0).toInt() == 0) { qputenv("QT_QPA_PLATFORM", "windows:darkmode=1"); }
#endif
#elif defined(Q_OS_LINUX)
if (isRenderer) { // Force Mesa if Renderer
qputenv("LIBGL_ALWAYS_SOFTWARE", "1");
}
#ifdef PROJECT_OFFICIAL
qputenv("QT_QPA_PLATFORM", isRenderer ? "offscreen" : "xcb");
qputenv("QT_QPA_PLATFORM", "xcb");
#endif
#else
Q_UNUSED(isRenderer)
#endif
}

Expand Down

0 comments on commit b83e0fb

Please sign in to comment.