* @brief Refreshes cached theme colors and forces an axis re-render. */
| 1570 | * @brief Refreshes cached theme colors and forces an axis re-render. |
| 1571 | */ |
| 1572 | void Widgets::Waterfall::onThemeChanged() |
| 1573 | { |
| 1574 | const auto& theme = Misc::ThemeManager::instance(); |
| 1575 | m_outerBg = theme.getColor(QStringLiteral("widget_window")); |
| 1576 | m_innerBg = theme.getColor(QStringLiteral("widget_base")); |
| 1577 | m_borderColor = theme.getColor(QStringLiteral("widget_border")); |
| 1578 | m_textColor = theme.getColor(QStringLiteral("widget_text")); |
| 1579 | m_gridColor = QColor(m_borderColor.red(), m_borderColor.green(), m_borderColor.blue(), 80); |
| 1580 | |
| 1581 | markAxisDirty(); |
| 1582 | } |
| 1583 | |
| 1584 | /** |
| 1585 | * @brief Forces an axis re-render when the dashboard widget-font scale changes. |