1
Fork 0
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:
Nico Weber 2020-10-26 11:47:38 -04:00 committed by Andreas Kling
parent 709b3ccb0a
commit 63dcd59fa5
2 changed files with 13 additions and 0 deletions

View file

@ -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());
}