mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:48:11 +00:00
LibGfx: Make Color formattable
This commit is contained in:
parent
709b3ccb0a
commit
63dcd59fa5
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