hydrogen 1.2.3
ColorTheme Class Reference

Colors for hydrogen. More...

#include <Theme.h>

Inheritance diagram for ColorTheme:
Object< ColorTheme > Base

Public Member Functions

 ColorTheme ()
 
 ColorTheme (const std::shared_ptr< ColorTheme > pOther)
 
- Public Member Functions inherited from Object< ColorTheme >
 Object ()
 
 Object (const Object< ColorTheme > &other)
 
- Public Member Functions inherited from Base
 Base ()
 
 Base (const Base &other)
 
virtual const char * class_name () const
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG.
 
virtual QString toQString (const QString &sPrefix="", bool bShort=true) const
 Formatted string version for debugging purposes.
 

Data Fields

QColor m_accentColor
 
QColor m_accentTextColor
 
QColor m_alternateBaseColor
 Used as the alternate background color in views with alternating row colors.
 
QColor m_baseColor
 Used as the background color for text entry widgets; usually white or another light color.
 
QColor m_buttonColor
 The general button background color.
 
QColor m_buttonRedColor
 
QColor m_buttonRedTextColor
 
QColor m_buttonTextColor
 A foreground color used with the Button color.
 
QColor m_cursorColor
 
QColor m_darkColor
 Between Button and Dark.
 
QColor m_highlightColor
 A color to indicate a selected item or the current item.
 
QColor m_highlightedTextColor
 A text color that contrasts with Highlight.
 
QColor m_lightColor
 Lighter than Button color.
 
QColor m_midColor
 Darker than Button.
 
QColor m_midLightColor
 Between Button and Light.
 
QColor m_patternEditor_alternateRowColor
 
QColor m_patternEditor_backgroundColor
 
QColor m_patternEditor_line1Color
 
QColor m_patternEditor_line2Color
 
QColor m_patternEditor_line3Color
 
QColor m_patternEditor_line4Color
 
QColor m_patternEditor_line5Color
 
QColor m_patternEditor_lineColor
 
QColor m_patternEditor_noteOffColor
 
QColor m_patternEditor_noteVelocityDefaultColor
 
QColor m_patternEditor_noteVelocityFullColor
 
QColor m_patternEditor_noteVelocityHalfColor
 
QColor m_patternEditor_noteVelocityZeroColor
 
QColor m_patternEditor_octaveRowColor
 
QColor m_patternEditor_selectedRowColor
 
QColor m_patternEditor_selectedRowTextColor
 
QColor m_patternEditor_textColor
 
QColor m_playheadColor
 
QColor m_selectionHighlightColor
 
QColor m_selectionInactiveColor
 
QColor m_shadowTextColor
 A very dark color.
 
QColor m_songEditor_alternateRowColor
 
QColor m_songEditor_automationBackgroundColor
 
QColor m_songEditor_automationLineColor
 
QColor m_songEditor_automationNodeColor
 
QColor m_songEditor_backgroundColor
 
QColor m_songEditor_lineColor
 
QColor m_songEditor_selectedRowColor
 
QColor m_songEditor_selectedRowTextColor
 
QColor m_songEditor_stackedModeOffNextColor
 
QColor m_songEditor_stackedModeOnColor
 
QColor m_songEditor_stackedModeOnNextColor
 
QColor m_songEditor_textColor
 
QColor m_songEditor_virtualRowColor
 
QColor m_spinBoxColor
 
QColor m_spinBoxTextColor
 
QColor m_textColor
 The foreground color used with Base.
 
QColor m_toolTipBaseColor
 
QColor m_toolTipTextColor
 
QColor m_widgetColor
 
QColor m_widgetTextColor
 
QColor m_windowColor
 A general background color.
 
QColor m_windowTextColor
 A general foreground color.
 

Additional Inherited Members

- Static Public Member Functions inherited from Base
static const char * _class_name ()
 return the class name
 
static QString base_clock (const QString &sMsg)
 Measures the current time and stores it in __last_clock.
 
static QString base_clock_in (const QString &sMsg)
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation !
 
static bool count_active ()
 
static int getAliveObjectCount ()
 
static object_map_t getObjectMap ()
 
static Loggerlogger ()
 return the logger instance
 
static int objects_count ()
 
static void printObjectMapDiff (object_map_t map)
 Creates the difference between a snapshot of the object map and its current state and prints it to std::cout.
 
static void set_count (bool flag)
 enable/disable class instances counting
 
static void write_objects_map_to (std::ostream &out, object_map_t *map=nullptr)
 output the full objects map to a given ostream
 
static void write_objects_map_to_cerr ()
 output objects map to stderr
 
- Static Public Attributes inherited from Base
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes.
 
- Protected Member Functions inherited from Object< ColorTheme >
 ~Object ()
 
- Protected Member Functions inherited from Base
 ~Base ()
 
- Static Protected Member Functions inherited from Base
static void registerClass (const char *name, const atomic_obj_cpt_t *counters)
 
- Static Protected Attributes inherited from Base
static bool __count = false
 should we count class instances
 
static timeval __last_clock = { 0, 0 }
 
static Logger__logger = nullptr
 

Detailed Description

Colors for hydrogen.

Definition at line 42 of file Theme.h.

Constructor & Destructor Documentation

◆ ColorTheme() [1/2]

Definition at line 31 of file Theme.cpp.

◆ ColorTheme() [2/2]

ColorTheme ( const std::shared_ptr< ColorTheme > pOther)

Definition at line 93 of file Theme.cpp.

Field Documentation

◆ m_accentColor

QColor m_accentColor

Definition at line 117 of file Theme.h.

◆ m_accentTextColor

QColor m_accentTextColor

Definition at line 118 of file Theme.h.

◆ m_alternateBaseColor

QColor m_alternateBaseColor

Used as the alternate background color in views with alternating row colors.

Definition at line 92 of file Theme.h.

◆ m_baseColor

QColor m_baseColor

Used as the background color for text entry widgets; usually white or another light color.

Definition at line 90 of file Theme.h.

◆ m_buttonColor

QColor m_buttonColor

The general button background color.

This background can be different from Background as some styles require a different background color for buttons.

Definition at line 96 of file Theme.h.

◆ m_buttonRedColor

QColor m_buttonRedColor

Definition at line 121 of file Theme.h.

◆ m_buttonRedTextColor

QColor m_buttonRedTextColor

Definition at line 122 of file Theme.h.

◆ m_buttonTextColor

QColor m_buttonTextColor

A foreground color used with the Button color.

Definition at line 98 of file Theme.h.

◆ m_cursorColor

QColor m_cursorColor

Definition at line 126 of file Theme.h.

◆ m_darkColor

QColor m_darkColor

Between Button and Dark.

Definition at line 106 of file Theme.h.

◆ m_highlightColor

QColor m_highlightColor

A color to indicate a selected item or the current item.

Definition at line 110 of file Theme.h.

◆ m_highlightedTextColor

QColor m_highlightedTextColor

A text color that contrasts with Highlight.

Definition at line 112 of file Theme.h.

◆ m_lightColor

QColor m_lightColor

Lighter than Button color.

Definition at line 100 of file Theme.h.

◆ m_midColor

QColor m_midColor

Darker than Button.

Definition at line 104 of file Theme.h.

◆ m_midLightColor

QColor m_midLightColor

Between Button and Light.

Definition at line 102 of file Theme.h.

◆ m_patternEditor_alternateRowColor

QColor m_patternEditor_alternateRowColor

Definition at line 64 of file Theme.h.

◆ m_patternEditor_backgroundColor

QColor m_patternEditor_backgroundColor

Definition at line 63 of file Theme.h.

◆ m_patternEditor_line1Color

QColor m_patternEditor_line1Color

Definition at line 75 of file Theme.h.

◆ m_patternEditor_line2Color

QColor m_patternEditor_line2Color

Definition at line 76 of file Theme.h.

◆ m_patternEditor_line3Color

QColor m_patternEditor_line3Color

Definition at line 77 of file Theme.h.

◆ m_patternEditor_line4Color

QColor m_patternEditor_line4Color

Definition at line 78 of file Theme.h.

◆ m_patternEditor_line5Color

QColor m_patternEditor_line5Color

Definition at line 79 of file Theme.h.

◆ m_patternEditor_lineColor

QColor m_patternEditor_lineColor

Definition at line 74 of file Theme.h.

◆ m_patternEditor_noteOffColor

QColor m_patternEditor_noteOffColor

Definition at line 73 of file Theme.h.

◆ m_patternEditor_noteVelocityDefaultColor

QColor m_patternEditor_noteVelocityDefaultColor

Definition at line 70 of file Theme.h.

◆ m_patternEditor_noteVelocityFullColor

QColor m_patternEditor_noteVelocityFullColor

Definition at line 69 of file Theme.h.

◆ m_patternEditor_noteVelocityHalfColor

QColor m_patternEditor_noteVelocityHalfColor

Definition at line 71 of file Theme.h.

◆ m_patternEditor_noteVelocityZeroColor

QColor m_patternEditor_noteVelocityZeroColor

Definition at line 72 of file Theme.h.

◆ m_patternEditor_octaveRowColor

QColor m_patternEditor_octaveRowColor

Definition at line 67 of file Theme.h.

◆ m_patternEditor_selectedRowColor

QColor m_patternEditor_selectedRowColor

Definition at line 65 of file Theme.h.

◆ m_patternEditor_selectedRowTextColor

QColor m_patternEditor_selectedRowTextColor

Definition at line 66 of file Theme.h.

◆ m_patternEditor_textColor

QColor m_patternEditor_textColor

Definition at line 68 of file Theme.h.

◆ m_playheadColor

QColor m_playheadColor

Definition at line 125 of file Theme.h.

◆ m_selectionHighlightColor

QColor m_selectionHighlightColor

Definition at line 81 of file Theme.h.

◆ m_selectionInactiveColor

QColor m_selectionInactiveColor

Definition at line 82 of file Theme.h.

◆ m_shadowTextColor

QColor m_shadowTextColor

A very dark color.

By default, the shadow color is Qt::black.

Definition at line 108 of file Theme.h.

◆ m_songEditor_alternateRowColor

QColor m_songEditor_alternateRowColor

Definition at line 50 of file Theme.h.

◆ m_songEditor_automationBackgroundColor

QColor m_songEditor_automationBackgroundColor

Definition at line 56 of file Theme.h.

◆ m_songEditor_automationLineColor

QColor m_songEditor_automationLineColor

Definition at line 57 of file Theme.h.

◆ m_songEditor_automationNodeColor

QColor m_songEditor_automationNodeColor

Definition at line 58 of file Theme.h.

◆ m_songEditor_backgroundColor

QColor m_songEditor_backgroundColor

Definition at line 49 of file Theme.h.

◆ m_songEditor_lineColor

QColor m_songEditor_lineColor

Definition at line 54 of file Theme.h.

◆ m_songEditor_selectedRowColor

QColor m_songEditor_selectedRowColor

Definition at line 52 of file Theme.h.

◆ m_songEditor_selectedRowTextColor

QColor m_songEditor_selectedRowTextColor

Definition at line 53 of file Theme.h.

◆ m_songEditor_stackedModeOffNextColor

QColor m_songEditor_stackedModeOffNextColor

Definition at line 61 of file Theme.h.

◆ m_songEditor_stackedModeOnColor

QColor m_songEditor_stackedModeOnColor

Definition at line 59 of file Theme.h.

◆ m_songEditor_stackedModeOnNextColor

QColor m_songEditor_stackedModeOnNextColor

Definition at line 60 of file Theme.h.

◆ m_songEditor_textColor

QColor m_songEditor_textColor

Definition at line 55 of file Theme.h.

◆ m_songEditor_virtualRowColor

QColor m_songEditor_virtualRowColor

Definition at line 51 of file Theme.h.

◆ m_spinBoxColor

QColor m_spinBoxColor

Definition at line 123 of file Theme.h.

◆ m_spinBoxTextColor

QColor m_spinBoxTextColor

Definition at line 124 of file Theme.h.

◆ m_textColor

QColor m_textColor

The foreground color used with Base.

This is usually the same as the Foreground, in which case it must provide good contrast with Background and Base.

Definition at line 94 of file Theme.h.

◆ m_toolTipBaseColor

QColor m_toolTipBaseColor

Definition at line 113 of file Theme.h.

◆ m_toolTipTextColor

QColor m_toolTipTextColor

Definition at line 114 of file Theme.h.

◆ m_widgetColor

QColor m_widgetColor

Definition at line 119 of file Theme.h.

◆ m_widgetTextColor

QColor m_widgetTextColor

Definition at line 120 of file Theme.h.

◆ m_windowColor

QColor m_windowColor

A general background color.

Definition at line 86 of file Theme.h.

◆ m_windowTextColor

QColor m_windowTextColor

A general foreground color.

Definition at line 88 of file Theme.h.