| 2491 | } |
| 2492 | |
| 2493 | void MainWindow::setTheme(const Theme& theme, bool dark) |
| 2494 | { |
| 2495 | darkMode = dark; |
| 2496 | for (int i=0; i<ui->tabWidget->count(); i++) { |
| 2497 | CodeEditor* ce = qobject_cast<CodeEditor*>(ui->tabWidget->widget(i)); |
| 2498 | if (ce) { |
| 2499 | ce->setTheme(theme, darkMode); |
| 2500 | } |
| 2501 | } |
| 2502 | ui->outputWidget->setTheme(theme, darkMode); |
| 2503 | if (conductor != nullptr) { |
| 2504 | conductor->setDarkMode(darkMode); |
| 2505 | } |
| 2506 | } |
| 2507 | |
| 2508 | void MainWindow::initTheme() |
| 2509 | { |
nothing calls this directly
no test coverage detected