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

Method updateTheme

app/src/Platform/CSD.cpp:1269–1281  ·  view source on GitHub ↗

* @brief Updates theme colors for the title bar. */

Source from the content-addressed store, hash-verified

1267 * @brief Updates theme colors for the title bar.
1268 */
1269void 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.

Callers 1

onThemeChangedMethod · 0.80

Calls 4

isEmptyMethod · 0.80
getColorMethod · 0.80
setBackgroundColorMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected