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:
parent
d85b09893d
commit
08cae2773d
10 changed files with 30 additions and 21 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue