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

Method onThemeChanged

app/src/UI/Widgets/Waterfall.cpp:1572–1582  ·  view source on GitHub ↗

* @brief Refreshes cached theme colors and forces an axis re-render. */

Source from the content-addressed store, hash-verified

1570 * @brief Refreshes cached theme colors and forces an axis re-render.
1571 */
1572void 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.

Callers

nothing calls this directly

Calls 1

getColorMethod · 0.80

Tested by

no test coverage detected