7#ifndef KSYNTAXHIGHLIGHTING_THEME_H
8#define KSYNTAXHIGHLIGHTING_THEME_H
10#include "ksyntaxhighlighting_export.h"
13#include <QExplicitlySharedDataPointer>
15#include <qobjectdefs.h>
20class RepositoryPrivate;
64class KSYNTAXHIGHLIGHTING_EXPORT
Theme
67 Q_PROPERTY(
QString name READ name)
68 Q_PROPERTY(
QString translatedName READ translatedName)
221 TemplateReadOnlyPlaceholder
223 Q_ENUM(EditorColorRole)
249 bool isValid()
const;
261 QString translatedName()
const;
271 bool isReadOnly()
const;
294 QRgb selectedTextColor(
TextStyle style)
const;
301 QRgb backgroundColor(
TextStyle style)
const;
308 QRgb selectedBackgroundColor(
TextStyle style)
const;
328 bool isStrikeThrough(
TextStyle style)
const;
340 KSYNTAXHIGHLIGHTING_NO_EXPORT
explicit Theme(ThemeData *data);
341 friend class RepositoryPrivate;
342 friend class ThemeData;
Color theme definition used for highlighting.
Theme(const Theme ©)
Copy constructor, sharing the Theme data with copy.
EditorColorRole
Editor color roles, used to paint line numbers, editor background etc.
@ IndentationLine
Color used to draw vertical indentation levels, typically a line.
@ CodeFolding
Background colors for code folding regions in the text area, as well as code folding indicators in th...
@ MarkWarning
Background color for general warning marks.
@ SpellChecking
Color used to underline spell check errors.
@ MarkBookmark
Background color for bookmarks.
@ MarkBreakpointReached
Background color for a reached breakpoint.
@ SavedLines
Color used to draw a vertical line for marking saved lines.
@ TemplateFocusedPlaceholder
Background color for the currently active placeholder in text templates.
@ MarkError
Background color for general error marks.
@ CurrentLineNumber
Foreground color for drawing the current line number.
@ TemplateBackground
Background color for text templates (snippets).
@ MarkBreakpointDisabled
Background color for inactive (disabled) breakpoints.
@ IconBorder
Background color for the icon border.
@ Separator
Line color used to draw separator lines, e.g.
@ TabMarker
Foreground color for visualizing tabs and trailing spaces.
@ SearchHighlight
Background color for matching text while searching.
@ TextSelection
Background color for selected text.
@ ReplaceHighlight
Background color for replaced text for a search & replace action.
@ BracketMatching
Background color for matching bracket pairs (including quotes)
@ MarkBreakpointActive
Background color for active breakpoints.
@ ModifiedLines
Color used to draw a vertical line for marking changed lines.
@ LineNumbers
Foreground color for drawing the line numbers.
@ TemplatePlaceholder
Background color for all editable placeholders in text templates.
@ MarkExecution
Background color for marking the current execution position.
@ CurrentLine
Background color for the line of the current text cursor.
@ WordWrapMarker
Color used in the icon border to indicate dynamically wrapped lines.
Theme & operator=(const Theme &other)
Assignment operator, sharing the Theme data with other.
TextStyle
Default styles that can be referenced from syntax definition XML files.
@ Import
Text style for includes, imports, modules, or LaTeX packages.
@ Attribute
Text style for attributes of functions or objects, e.g.
@ BaseN
Text style for numbers with base other than 10.
@ CommentVar
Text style that refers to variables in a comment, such as after @param <identifier> in Doxygen or Jav...
@ Comment
Text style for normal comments.
@ SpecialString
Text style for special strings such as regular expressions in ECMAScript or the LaTeX math mode.
@ Char
Text style for single characters such as 'a'.
@ Warning
Text style for warnings, such as the keyword @warning in Doxygen.
@ Error
Text style indicating wrong syntax.
@ Preprocessor
Text style for preprocessor statements.
@ Constant
Text style for language constants, e.g.
@ Float
Text style for floating point numbers.
@ Keyword
Text style for language keywords.
@ VerbatimString
Text style for verbatim strings such as HERE docs.
@ Extension
Text style for well-known extensions, such as Qt or boost.
@ ControlFlow
Text style for control flow highlighting, such as if, then, else, return, or continue.
@ DecVal
Text style for decimal values.
@ BuiltIn
Text style for built-in language classes and functions.
@ DataType
Text style for data types such as int, char, float etc.
@ Documentation
Text style for comments that reflect API documentation, such as doxygen /** */ comments.
@ SpecialChar
Text style for escaped characters in strings, such as "hello\n".
@ RegionMarker
Text style for region markers, typically defined by BEGIN/END.
@ Information
Text style for information, such as the keyword @note in Doxygen.
@ String
Text style for strings, for instance "hello world".
@ Function
Text style for function definitions and function calls.
@ Alert
Text style for comment specials such as TODO and WARNING in comments.
@ Variable
Text style for variables, if applicable.
@ Annotation
Text style for annotations in comments, such as @param in Doxygen or JavaDoc.
@ Operator
Text style for operators such as +, -, *, / and :: etc.
Syntax highlighting engine for Kate syntax definitions.