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

Method getColor

app/src/Misc/ThemeManager.cpp:244–250  ·  view source on GitHub ↗

* @brief Returns a @c QColor object for the given component @a name. */

Source from the content-addressed store, hash-verified

242 * @brief Returns a @c QColor object for the given component @a name.
243 */
244QColor Misc::ThemeManager::getColor(const QString& name) const
245{
246 if (colors().contains(name))
247 return QColor(colors()[name].toString());
248
249 return QColor(qRgb(0xff, 0x00, 0xff));
250}
251
252/**
253 * @brief Returns the theme colour for an AlarmSeverity tier (0=Info, 1=Ok, 2=Warning, 3=Critical).

Callers 13

getDeviceColorMethod · 0.80
foregroundColorMethod · 0.80
buttonIconColorMethod · 0.80
updateThemeMethod · 0.80
onThemeChangedMethod · 0.80
onThemeChangedMethod · 0.80
onThemeChangedMethod · 0.80
OutputCodeEditorMethod · 0.80
PainterCodeEditorMethod · 0.80
JsCodeEditorMethod · 0.80
ControlScriptEditorMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by 1

onThemeChangedMethod · 0.64