#pragma once #include #include "common.hpp" #include "utils/color.hpp" LEMONBUDDY_NS class color { public: explicit color(string hex); string source() const; operator XRenderColor() const; operator string() const; operator uint32_t() const; static color parse(string input, color fallback); static color parse(string input); protected: uint32_t m_color; string m_source; }; extern map g_colorstore; extern color g_colorempty; extern color g_colorblack; extern color g_colorwhite; LEMONBUDDY_NS_END