wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ThemeAttributes Class Reference

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

Detailed Description

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.

Member Function Documentation

◆ setTheme()

Member Data Documentation

◆ m_connectionActive

QColor ThemeAttributes::m_connectionActive

Definition at line 53 of file ThemeManager.h.

Referenced by setTheme().

◆ m_connectionError

QColor ThemeAttributes::m_connectionError = QColor(Qt::red)

Definition at line 54 of file ThemeManager.h.

Referenced by setTheme().

◆ m_connectionInactive

QColor ThemeAttributes::m_connectionInactive

Definition at line 52 of file ThemeManager.h.

Referenced by setTheme().

◆ m_connectionSelected

QColor ThemeAttributes::m_connectionSelected

Definition at line 55 of file ThemeManager.h.

Referenced by setTheme().

◆ m_connectionUnknown

QColor ThemeAttributes::m_connectionUnknown

Definition at line 51 of file ThemeManager.h.

Referenced by setTheme(), and Node::setWirelessMode().

◆ m_graphicElementLabelColor

QColor ThemeAttributes::m_graphicElementLabelColor

Definition at line 47 of file ThemeManager.h.

Referenced by setTheme(), GraphicElement::updateTheme(), and Text::updateTheme().

◆ m_portActiveBrush

QColor ThemeAttributes::m_portActiveBrush

Definition at line 61 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portActivePen

QColor ThemeAttributes::m_portActivePen

Definition at line 68 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portErrorBrush

QColor ThemeAttributes::m_portErrorBrush

Definition at line 62 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portErrorPen

QColor ThemeAttributes::m_portErrorPen

Definition at line 69 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portHoverLabelBg

QColor ThemeAttributes::m_portHoverLabelBg

Definition at line 77 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portHoverLabelText

QColor ThemeAttributes::m_portHoverLabelText

Definition at line 78 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portHoverPort

QColor ThemeAttributes::m_portHoverPort

Definition at line 73 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portInactiveBrush

QColor ThemeAttributes::m_portInactiveBrush

Definition at line 60 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portInactivePen

QColor ThemeAttributes::m_portInactivePen

Definition at line 67 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portUnknownBrush

QColor ThemeAttributes::m_portUnknownBrush

Definition at line 59 of file ThemeManager.h.

Referenced by setTheme().

◆ m_portUnknownPen

QColor ThemeAttributes::m_portUnknownPen

Definition at line 66 of file ThemeManager.h.

Referenced by setTheme().

◆ m_sceneBgBrush

QColor ThemeAttributes::m_sceneBgBrush

Definition at line 37 of file ThemeManager.h.

Referenced by setTheme(), and Scene::updateTheme().

◆ m_sceneBgDots

QColor ThemeAttributes::m_sceneBgDots

Definition at line 38 of file ThemeManager.h.

Referenced by setTheme(), and Scene::updateTheme().

◆ m_selectionBrush

QColor ThemeAttributes::m_selectionBrush

◆ m_selectionPen

QColor ThemeAttributes::m_selectionPen

The documentation for this class was generated from the following files: