* @brief Updates theme colors for the title bar. */
| 1267 | * @brief Updates theme colors for the title bar. |
| 1268 | */ |
| 1269 | void Window::updateTheme() |
| 1270 | { |
| 1271 | const auto& theme = Misc::ThemeManager::instance(); |
| 1272 | |
| 1273 | if (m_titleBar) { |
| 1274 | const QString color = |
| 1275 | m_color.isEmpty() ? theme.getColor(QStringLiteral("toolbar_top")).name() : m_color; |
| 1276 | m_titleBar->setBackgroundColor(QColor(color)); |
| 1277 | } |
| 1278 | |
| 1279 | if (m_contentContainer) |
| 1280 | m_contentContainer->setProperty("color", theme.getColor(QStringLiteral("toolbar_top"))); |
| 1281 | } |
| 1282 | |
| 1283 | /** |
| 1284 | * @brief Reparents a child item to the content container. |
no test coverage detected