mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +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
|
@ -153,7 +153,7 @@ void SyntaxHighlighter::rehighlight(Palette const& palette)
|
|||
token->start_position().column + token_start_offset,
|
||||
token->start_position().line,
|
||||
token->start_position().column + token_start_offset + token->tag_name().length(),
|
||||
{ palette.syntax_keyword(), {}, false, true },
|
||||
{ palette.syntax_keyword(), {}, true },
|
||||
token->is_start_tag() ? AugmentedTokenKind::OpenTag : AugmentedTokenKind::CloseTag);
|
||||
|
||||
token->for_each_attribute([&](auto& attribute) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue