X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FColorCode.h;h=240c9e58a2b80b3f94020d2d2d1b42332f4de2ac;hb=1acedf11da79f509da706bc8d6d2f491c9676087;hp=8df8ff4c8fcecf8bde4298a62e482fd15a6fad16;hpb=eea79637c78bb9916031924eca7b305cfb8e83df;p=lyx.git diff --git a/src/ColorCode.h b/src/ColorCode.h index 8df8ff4c8f..240c9e58a2 100644 --- a/src/ColorCode.h +++ b/src/ColorCode.h @@ -87,6 +87,14 @@ enum ColorCode Color_mathbg, /// Macro math inset background color Color_mathmacrobg, + /// Macro math inset background color hovered + Color_mathmacrohoverbg, + /// Macro math label color + Color_mathmacrolabel, + /// Macro math frame color + Color_mathmacroframe, + /// Macro math blended color + Color_mathmacroblend, /// Math inset frame color under focus Color_mathframe, /// Math inset frame color not under focus @@ -129,6 +137,8 @@ enum ColorCode Color_tabularonoffline, /// Bottom area color Color_bottomarea, + /// New page color + Color_newpage, /// Page break color Color_pagebreak, @@ -148,6 +158,27 @@ enum ColorCode Color_ignore }; + +struct RGBColor { + unsigned int r; + unsigned int g; + unsigned int b; + RGBColor() : r(0), g(0), b(0) {} + RGBColor(unsigned int red, unsigned int green, unsigned int blue) + : r(red), g(green), b(blue) {} +}; + +inline bool operator==(RGBColor const & c1, RGBColor const & c2) +{ + return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b); +} + + +inline bool operator!=(RGBColor const & c1, RGBColor const & c2) +{ + return !(c1 == c2); +} + } // namespace lyx #endif