19#include "platformhandler.h"
21#include <QCoreApplication>
28namespace PlatformHandler
30 void configurePlatformSpecificSettings() {}
31 bool isDarkMode() {
return false; }
34#if _WIN32_WINNT >= _WIN32_WINNT_WIN7
36 if (version.startsWith(
"99.0.0")) {
37 SetCurrentProcessExplicitAppUserModelID(L
"Pencil2D.Pencil2D.Nightly");
38 }
else if (version ==
"0.0.0.0") {
39 SetCurrentProcessExplicitAppUserModelID(L
"Pencil2D.Pencil2D.Development");
41 SetCurrentProcessExplicitAppUserModelID(L
"Pencil2D.Pencil2D.Release");
45#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
50 if (settings.value(
"EnableHighDpiScaling",
"true").toBool())
void setAttribute(Qt::ApplicationAttribute attribute, bool on)