mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00: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:
committed by
Ali Mohammad Pur
parent
0277118cb4
commit
ece59948c3
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
||||||
|
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
@@ -12,10 +13,18 @@
|
|||||||
namespace Gfx {
|
namespace Gfx {
|
||||||
|
|
||||||
struct TextAttributes {
|
struct TextAttributes {
|
||||||
|
enum class UnderlineStyle {
|
||||||
|
Solid,
|
||||||
|
Wavy
|
||||||
|
};
|
||||||
|
|
||||||
Color color;
|
Color color;
|
||||||
Optional<Color> background_color;
|
Optional<Color> background_color {};
|
||||||
bool underline { false };
|
bool underline { false };
|
||||||
bool bold { false };
|
bool bold { false };
|
||||||
|
|
||||||
|
Optional<Color> underline_color {};
|
||||||
|
UnderlineStyle underline_style { UnderlineStyle::Solid };
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user