1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibGfx: More work on header dependency reduction

This commit is contained in:
Andreas Kling 2020-02-14 23:28:42 +01:00
parent d85b09893d
commit 08cae2773d
10 changed files with 30 additions and 21 deletions

View file

@ -25,11 +25,15 @@
*/
#include <AK/Assertions.h>
#include <AK/Optional.h>
#include <AK/String.h>
#include <LibGfx/Color.h>
#include <LibGfx/SystemTheme.h>
#include <ctype.h>
#include <stdio.h>
namespace Gfx {
Color::Color(NamedColor named)
{
struct {
@ -338,3 +342,9 @@ Optional<Color> Color::from_string(const StringView& string)
return Color(r.value(), g.value(), b.value(), a.value());
}
}
inline const LogStream& operator<<(const LogStream& stream, Color value)
{
return stream << value.to_string();
}