mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibGfx: Make Color formattable
This commit is contained in:
parent
709b3ccb0a
commit
63dcd59fa5
Notes:
sideshowbarker
2024-07-19 01:42:13 +09:00
Author: https://github.com/nico
Commit: 63dcd59fa5
Pull-request: https://github.com/SerenityOS/serenity/pull/3857
2 changed files with 13 additions and 0 deletions
|
@ -433,3 +433,8 @@ bool IPC::decode(IPC::Decoder& decoder, Color& color)
|
|||
color = Color::from_rgba(rgba);
|
||||
return true;
|
||||
}
|
||||
|
||||
void AK::Formatter<Gfx::Color>::format(TypeErasedFormatParams& params, FormatBuilder& builder, const Gfx::Color& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, value.to_string());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue