* @brief Handles theme change events. */
| 276 | * @brief Handles theme change events. |
| 277 | */ |
| 278 | void 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. |
nothing calls this directly
no test coverage detected