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

Function isRunningInDarkMode

gui/qt/utils.cpp:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool isRunningInDarkMode() {
89 QPalette palette = qApp->palette();
90 return palette.window().color().value() < palette.windowText().color().value();
91}
92
93bool isSystemInDarkMode() {
94 bool isDarkMode;

Callers 7

BasicHighlighterMethod · 0.85
darkModeSwitchMethod · 0.85
isSystemInDarkModeFunction · 0.85
updateDarkModeMethod · 0.85
addHighlightMethod · 0.85
AsmHighlighterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected