| 49 | } |
| 50 | |
| 51 | void MainWindow::debugBasicUpdateDarkMode() { |
| 52 | bool darkMode = isRunningInDarkMode(); |
| 53 | m_basicCurrLine.format.setBackground(darkMode ? QColor(Qt::darkBlue) : QColor(Qt::blue).lighter(180)); |
| 54 | m_basicCurrToken.format.setBackground(darkMode ? QColor(Qt::darkMagenta) : QColor(Qt::yellow).lighter(100)); |
| 55 | for (BasicEditor *basicEditor : { ui->basicEdit, ui->basicTempEdit }) { |
| 56 | basicEditor->updateDarkMode(); |
| 57 | if (!basicEditor->extraSelections().isEmpty()) { |
| 58 | ui->basicEdit->setExtraSelections({ m_basicCurrLine, m_basicCurrToken }); |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | void MainWindow::debugBasicReconfigure(bool forceUpdate) { |
| 64 | if (guiDebug) { |
nothing calls this directly
no test coverage detected