* @brief Returns a @c QColor object for the given component @a name. */
| 242 | * @brief Returns a @c QColor object for the given component @a name. |
| 243 | */ |
| 244 | QColor 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). |