|
wiRedPanda
Logic Circuit Simulator
|
Contains all color attributes for a theme. More...
#include <ThemeManager.h>
Public Member Functions | |
| void | setTheme (const Theme theme) |
| Applies theme colors to all color attributes in this object. | |
Public Attributes | |
| QColor | m_connectionActive |
| QColor | m_connectionError = QColor(Qt::red) |
| QColor | m_connectionInactive |
| QColor | m_connectionSelected |
| QColor | m_connectionUnknown |
| QColor | m_graphicElementLabelColor |
| QColor | m_portActiveBrush |
| QColor | m_portActivePen |
| QColor | m_portErrorBrush |
| QColor | m_portErrorPen |
| QColor | m_portHoverLabelBg |
| QColor | m_portHoverLabelText |
| QColor | m_portHoverPort |
| QColor | m_portInactiveBrush |
| QColor | m_portInactivePen |
| QColor | m_portUnknownBrush |
| QColor | m_portUnknownPen |
| QColor | m_sceneBgBrush |
| QColor | m_sceneBgDots |
| QColor | m_selectionBrush |
| QColor | m_selectionPen |
Contains all color attributes for a theme.
This class holds all the color-related attributes used throughout the application UI, including colors for the scene background, selection indicators, connections, ports, and other UI elements.
Definition at line 27 of file ThemeManager.h.
| void ThemeAttributes::setTheme | ( | const Theme | theme | ) |
Applies theme colors to all color attributes in this object.
Definition at line 160 of file ThemeManager.cpp.
References Dark, Application::instance(), Light, m_connectionActive, m_connectionError, m_connectionInactive, m_connectionSelected, m_connectionUnknown, m_graphicElementLabelColor, m_portActiveBrush, m_portActivePen, m_portErrorBrush, m_portErrorPen, m_portHoverLabelBg, m_portHoverLabelText, m_portHoverPort, m_portInactiveBrush, m_portInactivePen, m_portUnknownBrush, m_portUnknownPen, m_sceneBgBrush, m_sceneBgDots, m_selectionBrush, m_selectionPen, and setTheme().
Referenced by setTheme(), and ThemeManager::setTheme().
| QColor ThemeAttributes::m_connectionActive |
Definition at line 53 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_connectionError = QColor(Qt::red) |
Definition at line 54 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_connectionInactive |
Definition at line 52 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_connectionSelected |
Definition at line 55 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_connectionUnknown |
Definition at line 51 of file ThemeManager.h.
Referenced by setTheme(), and Node::setWirelessMode().
| QColor ThemeAttributes::m_graphicElementLabelColor |
Definition at line 47 of file ThemeManager.h.
Referenced by setTheme(), GraphicElement::updateTheme(), and Text::updateTheme().
| QColor ThemeAttributes::m_portActiveBrush |
Definition at line 61 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portActivePen |
Definition at line 68 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portErrorBrush |
Definition at line 62 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portErrorPen |
Definition at line 69 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portHoverLabelBg |
Definition at line 77 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portHoverLabelText |
Definition at line 78 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portHoverPort |
Definition at line 73 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portInactiveBrush |
Definition at line 60 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portInactivePen |
Definition at line 67 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portUnknownBrush |
Definition at line 59 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_portUnknownPen |
Definition at line 66 of file ThemeManager.h.
Referenced by setTheme().
| QColor ThemeAttributes::m_sceneBgBrush |
Definition at line 37 of file ThemeManager.h.
Referenced by setTheme(), and Scene::updateTheme().
| QColor ThemeAttributes::m_sceneBgDots |
Definition at line 38 of file ThemeManager.h.
Referenced by setTheme(), and Scene::updateTheme().
| QColor ThemeAttributes::m_selectionBrush |
Definition at line 42 of file ThemeManager.h.
Referenced by ElementAppearance::applyTheme(), SceneInteraction::applyTheme(), and setTheme().
| QColor ThemeAttributes::m_selectionPen |
Definition at line 43 of file ThemeManager.h.
Referenced by ElementAppearance::applyTheme(), SceneInteraction::applyTheme(), and setTheme().