X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FColorCode.h;h=393c14654e7d3baf8e74cf7f157fc60f91d006c6;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=3feb992559d0482b554c033f34d14541878b6338;hpb=5a7a53e34681bfa76209d3f68786d2913451c0d9;p=lyx.git diff --git a/src/ColorCode.h b/src/ColorCode.h index 3feb992559..393c14654e 100644 --- a/src/ColorCode.h +++ b/src/ColorCode.h @@ -48,6 +48,10 @@ enum ColorCode Color_latex, /// The color used for previews Color_preview, + /// Inline completion color + Color_inlinecompletion, + /// Inline completion color for the non-unique part + Color_nonunique_inlinecompletion, /// Text color for notes Color_note, @@ -64,6 +68,19 @@ enum ColorCode /// Shaded box background Color_shadedbg, + /// Label color for branches + Color_branchlabel, + /// Label color for footnotes + Color_footlabel, + /// Label color for index insets + Color_indexlabel, + /// Label color for margin notes + Color_marginlabel, + /// Label color for URL insets + Color_urllabel, + /// Label color for URL text + Color_urltext, + /// Color for the depth bars in the margin Color_depthbar, /// Color for marking foreign language words @@ -137,6 +154,8 @@ enum ColorCode Color_tabularonoffline, /// Bottom area color Color_bottomarea, + /// New page color + Color_newpage, /// Page break color Color_pagebreak, @@ -156,6 +175,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