diff options
author | Oriko <oriko1010@protonmail.com> | 2020-03-16 01:05:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-16 13:39:34 +0100 |
commit | 2b162ef79459d4b4961c25809ef98da4ca5cefd5 (patch) | |
tree | 81d1beeb680926ee202f2592a061a59f57b17129 /Libraries/LibGfx/Palette.h | |
parent | 6da7fd9aab12c8af04dbc261474c7b0dddab72e4 (diff) | |
download | serenity-2b162ef79459d4b4961c25809ef98da4ca5cefd5.zip |
LibGUI: Use themes for syntax highlighting
Diffstat (limited to 'Libraries/LibGfx/Palette.h')
-rw-r--r-- | Libraries/LibGfx/Palette.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Palette.h b/Libraries/LibGfx/Palette.h index b975f427ae..2d58890e74 100644 --- a/Libraries/LibGfx/Palette.h +++ b/Libraries/LibGfx/Palette.h @@ -105,6 +105,18 @@ public: Color active_link() const { return color(ColorRole::ActiveLink); } Color visited_link() const { return color(ColorRole::VisitedLink); } + Color syntax_comment() const { return color(ColorRole::SyntaxComment); } + Color syntax_number() const { return color(ColorRole::SyntaxNumber); } + Color syntax_string() const { return color(ColorRole::SyntaxString); } + Color syntax_identifier() const { return color(ColorRole::SyntaxIdentifier); } + Color syntax_type() const { return color(ColorRole::SyntaxType); } + Color syntax_punctuation() const { return color(ColorRole::SyntaxPunctuation); } + Color syntax_operator() const { return color(ColorRole::SyntaxOperator); } + Color syntax_keyword() const { return color(ColorRole::SyntaxKeyword); } + Color syntax_control_keyword() const { return color(ColorRole::SyntaxControlKeyword); } + Color syntax_preprocessor_statement() const { return color(ColorRole::SyntaxPreprocessorStatement); } + Color syntax_preprocessor_value() const { return color(ColorRole::SyntaxPreprocessorValue); } + Color color(ColorRole role) const { return m_impl->color(role); } void set_color(ColorRole, Color); |