mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibGfx: Expand TextAttributes with more information about underlining
This adds a seperate Color to be used for underlines as well as support for different underline styles.
This commit is contained in:
parent
0277118cb4
commit
ece59948c3
Notes:
sideshowbarker
2024-07-18 00:34:07 +09:00
Author: https://github.com/TobyAsE Commit: https://github.com/SerenityOS/serenity/commit/ece59948c3e Pull-request: https://github.com/SerenityOS/serenity/pull/12027 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/alimpfard
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
@ -12,10 +13,18 @@
|
||||
namespace Gfx {
|
||||
|
||||
struct TextAttributes {
|
||||
enum class UnderlineStyle {
|
||||
Solid,
|
||||
Wavy
|
||||
};
|
||||
|
||||
Color color;
|
||||
Optional<Color> background_color;
|
||||
Optional<Color> background_color {};
|
||||
bool underline { false };
|
||||
bool bold { false };
|
||||
|
||||
Optional<Color> underline_color {};
|
||||
UnderlineStyle underline_style { UnderlineStyle::Solid };
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user