19#include "platformhandler.h"
21#include <QCoreApplication>
28namespace PlatformHandler
30 void configurePlatformSpecificSettings() {}
31 bool isDarkMode() {
return false; };
34#if _WIN32_WINNT >= _WIN32_WINNT_WIN7
35#if defined(PENCIL2D_RELEASE_BUILD)
36 SetCurrentProcessExplicitAppUserModelID(L
"Pencil2D.Pencil2D.Release");
37#elif defined(PENCIL2D_NIGHTLY_BUILD)
38 SetCurrentProcessExplicitAppUserModelID(L
"Pencil2D.Pencil2D.Nightly");
40 SetCurrentProcessExplicitAppUserModelID(L
"Pencil2D.Pencil2D");
44#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
49 if (settings.value(
"EnableHighDpiScaling",
"true").toBool())
void setAttribute(Qt::ApplicationAttribute attribute, bool on)