summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorkperdlich <k.perdlich@googlemail.com>2022-02-23 22:50:00 +0100
committerLinus Groh <mail@linusgroh.de>2022-02-23 21:56:16 +0000
commita3ab8dcecda0290fad6e705fbbf5404c9476cf7b (patch)
tree1f37a2ae88a69261253e6345dac17cb92566aee8 /Userland
parent2c1252b92efc28ff794651351110b84eb3ed4648 (diff)
downloadserenity-a3ab8dcecda0290fad6e705fbbf5404c9476cf7b.zip
Shell: Use an opaque color for SyntaxError
Use an opaque color for SyntaxError in Syntax Highlighter to avoid transparent errors.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Shell/SyntaxHighlighter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Shell/SyntaxHighlighter.cpp b/Userland/Shell/SyntaxHighlighter.cpp
index 24e938ea84..da670e4f84 100644
--- a/Userland/Shell/SyntaxHighlighter.cpp
+++ b/Userland/Shell/SyntaxHighlighter.cpp
@@ -481,6 +481,7 @@ private:
auto& span = span_for_node(node);
span.attributes.underline = true;
span.attributes.background_color = Color(Color::NamedColor::MidRed).lightened(1.3f).with_alpha(128);
+ span.attributes.color = m_palette.base_text();
}
virtual void visit(const AST::Tilde* node) override
{