KSyntaxHighlighting
themedata.cpp
112 m_textStyles[i] = readThemeData(textStyles.value(QLatin1String(metaEnumStyle.key(i))).toObject());
125 m_editorColors[Theme::BackgroundColor] = readColor(editorColors.value(QLatin1String("background-color")));
126 m_editorColors[Theme::TextSelection] = readColor(editorColors.value(QLatin1String("selection")));
127 m_editorColors[Theme::CurrentLine] = readColor(editorColors.value(QLatin1String("current-line")));
128 m_editorColors[Theme::SearchHighlight] = readColor(editorColors.value(QLatin1String("search-highlight")));
129 m_editorColors[Theme::ReplaceHighlight] = readColor(editorColors.value(QLatin1String("replace-highlight")));
130 m_editorColors[Theme::BracketMatching] = readColor(editorColors.value(QLatin1String("bracket-matching")));
132 m_editorColors[Theme::SpellChecking] = readColor(editorColors.value(QLatin1String("spell-checking")));
133 m_editorColors[Theme::IndentationLine] = readColor(editorColors.value(QLatin1String("indentation-line")));
134 m_editorColors[Theme::IconBorder] = readColor(editorColors.value(QLatin1String("icon-border")));
135 m_editorColors[Theme::CodeFolding] = readColor(editorColors.value(QLatin1String("code-folding")));
136 m_editorColors[Theme::LineNumbers] = readColor(editorColors.value(QLatin1String("line-numbers")));
137 m_editorColors[Theme::CurrentLineNumber] = readColor(editorColors.value(QLatin1String("current-line-number")));
138 m_editorColors[Theme::WordWrapMarker] = readColor(editorColors.value(QLatin1String("word-wrap-marker")));
139 m_editorColors[Theme::ModifiedLines] = readColor(editorColors.value(QLatin1String("modified-lines")));
140 m_editorColors[Theme::SavedLines] = readColor(editorColors.value(QLatin1String("saved-lines")));
142 m_editorColors[Theme::MarkBookmark] = readColor(editorColors.value(QLatin1String("mark-bookmark")));
143 m_editorColors[Theme::MarkBreakpointActive] = readColor(editorColors.value(QLatin1String("mark-breakpoint-active")));
144 m_editorColors[Theme::MarkBreakpointReached] = readColor(editorColors.value(QLatin1String("mark-breakpoint-reached")));
145 m_editorColors[Theme::MarkBreakpointDisabled] = readColor(editorColors.value(QLatin1String("mark-breakpoint-disabled")));
146 m_editorColors[Theme::MarkExecution] = readColor(editorColors.value(QLatin1String("mark-execution")));
147 m_editorColors[Theme::MarkWarning] = readColor(editorColors.value(QLatin1String("mark-warning")));
149 m_editorColors[Theme::TemplateBackground] = readColor(editorColors.value(QLatin1String("template-background")));
150 m_editorColors[Theme::TemplatePlaceholder] = readColor(editorColors.value(QLatin1String("template-placeholder")));
151 m_editorColors[Theme::TemplateFocusedPlaceholder] = readColor(editorColors.value(QLatin1String("template-focused-placeholder")));
152 m_editorColors[Theme::TemplateReadOnlyPlaceholder] = readColor(editorColors.value(QLatin1String("template-read-only-placeholder")));
235 Q_ASSERT(static_cast<int>(role) >= 0 && static_cast<int>(role) <= static_cast<int>(Theme::TemplateReadOnlyPlaceholder));
bool toBool(bool defaultValue) const const
QJsonObject toObject() const const
QJsonObject object() const const
@ BracketMatching
Background color for matching bracket pairs (including quotes)
Definition: theme.h:175
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
ReadOnly
@ TemplateReadOnlyPlaceholder
Background color for read-only placeholders in text templates.
Definition: theme.h:226
int toInt(int defaultValue) const const
QString toString() const const
TextStyle
Default styles that can be referenced from syntax definition XML files.
Definition: theme.h:80
@ TemplatePlaceholder
Background color for all editable placeholders in text templates.
Definition: theme.h:221
bool contains(const QString &key) const const
QJsonObject::iterator insert(const QString &key, const QJsonValue &value)
@ IndentationLine
Color used to draw vertical indentation levels, typically a line.
Definition: theme.h:181
QJsonObject::iterator end()
bool isEmpty() const const
Definition: abstracthighlighter.h:20
@ MarkBreakpointDisabled
Background color for inactive (disabled) breakpoints.
Definition: theme.h:211
NoError
QJsonValue value(const QString &key) const const
QString errorString() const const
bool isBool() const const
@ TemplateFocusedPlaceholder
Background color for the currently active placeholder in text templates.
Definition: theme.h:224
bool isString() const const
EditorColorRole
Editor color roles, used to paint line numbers, editor background etc.
Definition: theme.h:163
QJsonObject::iterator begin()
bool isWritable() const const
@ WordWrapMarker
Color used in the icon border to indicate dynamically wrapped lines.
Definition: theme.h:196
@ CodeFolding
Background colors for code folding regions in the text area, as well as code folding indicators in th...
Definition: theme.h:186
@ ReplaceHighlight
Background color for replaced text for a search & replace action.
Definition: theme.h:173
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.