16 using Vector = std::vector<ColorScheme>;
31 const QString &
name()
const;
44 QVector<QTextCharFormat> &&formats,
45 const QTextFormat &defaultFormat,
51 QVector<QTextCharFormat> m_formats;
52 QTextFormat m_defaultFormat;
53 QColor m_backgroundColor;
54 QColor m_currentLineHighlightColor;
ColorScheme to be used by the PythonHighlighter & Editor.
static ColorScheme Dracula()
QColor foregroundColor() const
Color to be used for regular text.
const QString & name() const
The name of the color scheme.
QColor currentLineHighlightColor() const
Color to be used if a highlight of the current line is shown.
static const Vector & AvailableColorSchemes()
Returns the vector of available color schemes.
const QTextCharFormat & operator[](PythonHighlighter::CodeElement e) const
Returns the format to be used for the given code element.
static ColorScheme Default()
Default color scheme.
std::vector< ColorScheme > Vector
static const ColorScheme * ColorSchemeByName(const QString &name)
QColor backgroundColor() const
Color to be used as the background for the displayed text.