MauiKit Terminal
ColorScheme.cpp
178 int hueDifference = range.hue ? QRandomGenerator::system()->bounded(range.hue) - range.hue / 2 : 0;
179 int saturationDifference = range.saturation ? (QRandomGenerator::system()->bounded(range.saturation)) - range.saturation / 2 : 0;
180 int valueDifference = range.value ? (QRandomGenerator::system()->bounded(range.value)) - range.value / 2 : 0;
227void ColorScheme::setRandomizationRange( int index , quint16 hue , quint8 saturation , quint8 value )
280 _description = s.value(QLatin1String("Description"), QObject::tr("Un-named Color Scheme")).toString();
296 QString description = configGroup.readEntry("Description", QObject::tr("Un-named Color Scheme"));
417// void ColorScheme::writeColorEntry(KConfig& config , const QString& colorName, const ColorEntry& entry , const RandomizationRange& random) const
548 QString path = KGlobal::dirs()->saveLocation("data","konsole/") + scheme->name() + ".colorscheme";
ColorScheme()
KConfigGroup group(const QString &group)
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
QString readEntry(const char *key, const char *aDefault=nullptr) const
NoGlobals
@ UseCurrentFormat
Use the current font weight set by the terminal application.
Definition CharacterColor.h:59
FontWeight fontWeight
Specifies the font weight to use when drawing text with this color.
Definition CharacterColor.h:98
bool transparent
If true character backgrounds using this color should be transparent.
Definition CharacterColor.h:93
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
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
void setDescription(const QString &description)
Sets the descriptive name of the color scheme.
Definition ColorScheme.cpp:124
KGUIADDONS_EXPORT qreal hue(const QColor &)
KIOCORE_EXPORT QString dir(const QString &fileClass)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
KGuiItem ok()
const QColor & color() const const
int hue() const const
int saturation() const const
void setHsv(int h, int s, int v, int a)
int value() const const
bool exists() const const
bool remove()
qsizetype count() const const
T & first()
bool isEmpty() const const
void push_back(parameter_type value)
QStringList
int id() const const
Q_EMITQ_EMIT
QString tr(const char *sourceText, const char *disambiguation, int n)
Active
double bounded(double highest)
QRandomGenerator * system()
CaseInsensitiveOption
IniFormat
void beginGroup(QAnyStringView prefix)
bool contains(QAnyStringView key) const const
void endGroup()
QVariant value(QAnyStringView key) const const
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QByteArray toUtf8() const const
QString join(QChar separator) const const
QStringView mid(qsizetype start, qsizetype length) const const
int toInt(bool *ok, int base) const const
StringList
Type type() const const
QMetaType metaType() const const
bool toBool() const const
int toInt(bool *ok) const const
QString toString() const const
QStringList toStringList() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.