X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FColorCode.h;h=707eadb0c3a2f5932825ec3e2b30d4dd6420f64a;hb=2f271f61bcd514da3ab5b44d2b7bf61e12ac0c44;hp=8df8ff4c8fcecf8bde4298a62e482fd15a6fad16;hpb=eea79637c78bb9916031924eca7b305cfb8e83df;p=lyx.git diff --git a/src/ColorCode.h b/src/ColorCode.h index 8df8ff4c8f..707eadb0c3 100644 --- a/src/ColorCode.h +++ b/src/ColorCode.h @@ -44,25 +44,47 @@ enum ColorCode Color_foreground, /// Background color of selected text Color_selection, + /// Foreground color of selected text + Color_selectiontext, /// Text color in LaTeX mode 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, + /// Label color for notes + Color_notelabel, /// Background color of notes Color_notebg, - /// Text color for comments - Color_comment, + /// Label color for comments + Color_commentlabel, /// Background color of comments Color_commentbg, - /// Text color for greyedout inset - Color_greyedout, + /// Label color for greyedout insets + Color_greyedoutlabel, /// Background color of greyedout inset Color_greyedoutbg, - /// Shaded box background + /// Background color of shaded box Color_shadedbg, + /// Background color of listings inset + Color_listingsbg, + + /// 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, + + /// Color for URL inset text + Color_urltext, /// Color for the depth bars in the margin Color_depthbar, @@ -87,6 +109,18 @@ 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, + /// Macro template color for old parameters + Color_mathmacrooldarg, + /// Macro template color for new parameters + Color_mathmacronewarg, /// Math inset frame color under focus Color_mathframe, /// Math inset frame color not under focus @@ -129,6 +163,8 @@ enum ColorCode Color_tabularonoffline, /// Bottom area color Color_bottomarea, + /// New page color + Color_newpage, /// Page break color Color_pagebreak, @@ -148,6 +184,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