mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
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.
This commit is contained in:
parent
609b616085
commit
6d8f046fd0
10 changed files with 16 additions and 19 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue