MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / setTheme

Method setTheme

MiniZincIDE/mainwindow.cpp:2493–2506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2491}
2492
2493void 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
2508void MainWindow::initTheme()
2509{

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
widgetMethod · 0.45
setDarkModeMethod · 0.45

Tested by

no test coverage detected