MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / onThemeChanged

Method onThemeChanged

app/src/Platform/NativeWindow_CSD.cpp:278–292  ·  view source on GitHub ↗

* @brief Handles theme change events. */

Source from the content-addressed store, hash-verified

276 * @brief Handles theme change events.
277 */
278void NativeWindow::onThemeChanged()
279{
280 if (isWindows11()) {
281 for (auto* window : std::as_const(m_windows))
282 Q_EMIT window->activeChanged();
283 }
284
285 else {
286 for (auto* window : std::as_const(m_windows)) {
287 auto* decorator = s_decorators.value(window, nullptr);
288 if (decorator)
289 decorator->updateTheme();
290 }
291 }
292}
293
294/**
295 * @brief Handles window state changes.

Callers

nothing calls this directly

Calls 3

isWindows11Function · 0.85
updateThemeMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected