diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-15 12:35:00 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-15 14:55:49 +0100 |
commit | 6d8f046fd047bca5f476cb48ec42fa9ce4e1d11f (patch) | |
tree | aecd9525c26b5ee79cea0253725b6a395874d3a9 /Userland/Shell | |
parent | 609b6160851109ad881a733e9d9e2e7851553f2a (diff) | |
download | serenity-6d8f046fd047bca5f476cb48ec42fa9ce4e1d11f.zip |
LibGfx+Userland: Make TextAttributes::underline_style optional
Rather than having a style AND a field saying whether to use the style,
just make the style Optional.
Diffstat (limited to 'Userland/Shell')
-rw-r--r-- | Userland/Shell/SyntaxHighlighter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Shell/SyntaxHighlighter.cpp b/Userland/Shell/SyntaxHighlighter.cpp index 2172f740d0..eb4f3f6bcb 100644 --- a/Userland/Shell/SyntaxHighlighter.cpp +++ b/Userland/Shell/SyntaxHighlighter.cpp @@ -80,7 +80,7 @@ private: if (node->path()->is_bareword()) { auto& span = span_for_node(node->path()); span.attributes.color = m_palette.link(); - span.attributes.underline = true; + span.attributes.underline_style = Gfx::TextAttributes::UnderlineStyle::Solid; } else { NodeVisitor::visit(node); } @@ -479,7 +479,7 @@ private: NodeVisitor::visit(node); auto& span = span_for_node(node); - span.attributes.underline = true; + span.attributes.underline_style = Gfx::TextAttributes::UnderlineStyle::Solid; span.attributes.background_color = Color(Color::NamedColor::MidRed).lightened(1.3f).with_alpha(128); span.attributes.color = m_palette.base_text(); } |