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

Method updateDarkMode

gui/qt/datawidget.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void DataWidget::updateDarkMode() {
17 bool darkMode = isRunningInDarkMode();
18 for (QTextEdit::ExtraSelection &selection : highlights) {
19 selection.format.setBackground(selection.format.colorProperty(QTextFormat::UserProperty + darkMode));
20 }
21 updateAllHighlights();
22 delete highlighter;
23 highlighter = new AsmHighlighter(document());
24}
25
26void DataWidget::clearAllHighlights() {
27 disconnect(this, &DataWidget::cursorPositionChanged, this, &DataWidget::highlightCurrentLine);

Callers 2

darkModeSwitchMethod · 0.45

Calls 1

isRunningInDarkModeFunction · 0.85

Tested by

no test coverage detected