MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / isSystemInDarkMode

Function isSystemInDarkMode

gui/qt/utils.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool isSystemInDarkMode() {
94 bool isDarkMode;
95
96#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
97 isDarkMode = qApp->styleHints()->colorScheme() == Qt::ColorScheme::Dark;
98#else
99 // TODO: handle other OS' way to know if we're running in dark mode
100 isDarkMode = isRunningInDarkMode();
101#endif
102
103 return isDarkMode;
104}
105
106
107QString getAddressOfEquate(const std::string &in) {

Callers 2

MainWindowMethod · 0.85
changeEventMethod · 0.85

Calls 1

isRunningInDarkModeFunction · 0.85

Tested by

no test coverage detected