MauiKit Terminal
ColorScheme.h
52 * The color scheme includes the palette of colors used to draw the text and character backgrounds
199 void writeColorEntry(KConfig& config , const QString& colorName, const ColorEntry& entry,const RandomizationRange& range) const;
212 std::optional<std::vector<ColorEntry>> _table; // pointer to custom color table or 0 if the default // color scheme is being used
A color scheme which uses colors from the standard KDE color palette.
Definition ColorScheme.h:240
Manages the color schemes available for use by terminal displays.
Definition ColorScheme.h:250
ColorSchemeManager()
Constructs a new ColorSchemeManager and loads the list of available color schemes.
Definition ColorScheme.cpp:502
QList< ColorScheme * > allColorSchemes()
Returns a list of the all the available color schemes.
Definition ColorScheme.cpp:528
static ColorSchemeManager * instance()
Returns the global color scheme manager instance.
Definition ColorScheme.cpp:688
const ColorScheme * defaultColorScheme() const
Returns the default color scheme for Konsole.
Definition ColorScheme.cpp:625
const ColorScheme * findColorScheme(const QString &name)
Returns the color scheme with the given name or 0 if no scheme with that name exists.
Definition ColorScheme.cpp:665
~ColorSchemeManager()
Destroys the ColorSchemeManager and saves any modified color schemes to disk.
void addCustomColorSchemeDir(const QString &custom_dir)
Allows to add a custom location of color schemes.
Definition ColorScheme.cpp:563
bool loadCustomColorScheme(const QString &path)
Loads a custom color scheme under given path.
Definition ColorScheme.cpp:555
qreal opacity() const
Returns the opacity level for this color scheme, see setOpacity() TODO: More documentation.
Definition ColorScheme.cpp:270
void setColorTableEntry(int index, const ColorEntry &entry)
Sets a single entry within the color palette.
Definition ColorScheme.cpp:144
QString description() const
Returns the descriptive name of the color scheme.
Definition ColorScheme.cpp:129
void setOpacity(qreal opacity)
Sets the opacity level of the display background.
Definition ColorScheme.cpp:265
bool hasDarkBackground() const
Returns true if this color scheme has a dark background.
Definition ColorScheme.cpp:258
std::array< ColorEntry, TABLE_COLORS > getColorTable(uint randomSeed=0) const
Copies the color entries which form the palette for this color scheme into table.
Definition ColorScheme.cpp:195
void setRandomizedBackgroundColor(bool randomize)
Enables randomization of the background color.
Definition ColorScheme.cpp:210
bool randomizedBackgroundColor() const
Returns true if the background color is randomized.
Definition ColorScheme.cpp:205
ColorEntry colorEntry(int index, uint randomSeed=0) const
Retrieves a single color entry from the table.
Definition ColorScheme.cpp:168
ColorScheme(QObject *parent=nullptr)
Constructs a new color scheme which is initialised to the default color set for Konsole.
Definition ColorScheme.cpp:113
void setDescription(const QString &description)
Sets the descriptive name of the color scheme.
Definition ColorScheme.cpp:124
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.