LibGfx: Make Color::NamedColor be an enum class

As this is used extensively across the codebase, the change would add a
lot of noise. To prevent it, let's also add an `using enum` declaration.
This commit is contained in:
Lucas CHOLLET 2024-05-23 22:44:33 -04:00 committed by Andreas Kling
parent 5b2356b452
commit f0269daeb6

View file

@ -40,7 +40,7 @@ struct Oklab {
class Color {
public:
enum NamedColor {
enum class NamedColor {
Transparent,
Black,
White,
@ -66,6 +66,8 @@ public:
LightBlue,
};
using enum NamedColor;
constexpr Color() = default;
constexpr Color(NamedColor);
constexpr Color(u8 r, u8 g, u8 b)