diff options
Diffstat (limited to 'src/helpers/Color.hpp')
| -rw-r--r-- | src/helpers/Color.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/helpers/Color.hpp b/src/helpers/Color.hpp index cf7f7943..0ea816f3 100644 --- a/src/helpers/Color.hpp +++ b/src/helpers/Color.hpp @@ -18,6 +18,7 @@ class CHyprColor { Hyprgraphics::CColor::SOkLab asOkLab() const; Hyprgraphics::CColor::SHSL asHSL() const; CHyprColor stripA() const; + CHyprColor modifyA(float newa) const; // bool operator==(const CHyprColor& c2) const { @@ -45,3 +46,18 @@ class CHyprColor { private: Hyprgraphics::CColor::SOkLab okLab; // cache for the OkLab representation }; + +//NOLINTNEXTLINE +namespace Colors { + static const CHyprColor WHITE = CHyprColor(1.F, 1.F, 1.F, 1.F); + static const CHyprColor GREEN = CHyprColor(0.F, 1.F, 0.F, 1.F); + static const CHyprColor BLUE = CHyprColor(0.F, 0.F, 1.F, 1.F); + static const CHyprColor RED = CHyprColor(1.F, 0.F, 0.F, 1.F); + static const CHyprColor ORANGE = CHyprColor(1.F, 0.5F, 0.F, 1.F); + static const CHyprColor YELLOW = CHyprColor(1.F, 1.F, 0.F, 1.F); + static const CHyprColor MAGENTA = CHyprColor(1.F, 0.F, 1.F, 1.F); + static const CHyprColor PURPLE = CHyprColor(0.5F, 0.F, 0.5F, 1.F); + static const CHyprColor LIME = CHyprColor(0.5F, 1.F, 0.1F, 1.F); + static const CHyprColor LIGHT_BLUE = CHyprColor(0.1F, 1.F, 1.F, 1.F); + static const CHyprColor BLACK = CHyprColor(0.F, 0.F, 0.F, 1.F); +}; |
