Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
585 B · 30 lines
C++
12345678910111213141516171819202122232425262728293031#include <QApplication>#include <QEvent>
namespace Platform{ class Application : public QApplication { Q_OBJECT
public: Application(int& argc, char* argv[]);
#if defined(WIN32) && QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) void init();
private slots: void updateStyle(bool isDark);#endif
signals: void darkModeChanged(bool);
private: bool notify(QObject* receiver, QEvent* event) override;
std::string mCurrentStyle{}; std::string mInitialStyle{}; bool mDarkMode{ false }; };}