4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * Full author contact details are available in file CREDITS.
15 /// Names of colors, including all logical colors
18 /// No particular color---clear or default
20 /// The different text colors
37 // Needed interface colors
45 /// Background color of selected text
47 /// Text color in LaTeX mode
49 /// The color used for previews
51 /// Inline completion color
52 Color_inlinecompletion,
53 /// Inline completion color for the non-unique part
54 Color_nonunique_inlinecompletion,
56 /// Text color for notes
58 /// Background color of notes
60 /// Text color for comments
62 /// Background color of comments
64 /// Text color for greyedout inset
66 /// Background color of greyedout inset
68 /// Shaded box background
71 /// Label color for branches
73 /// Label color for footnotes
75 /// Label color for index insets
77 /// Label color for margin notes
79 /// Label color for URL insets
81 /// Label color for URL text
84 /// Color for the depth bars in the margin
86 /// Color for marking foreign language words
89 /// Text color for command insets
91 /// Background color for command insets
93 /// Frame color for command insets
96 /// Special chars text color
99 /// Graphics inset background color
101 /// Math inset text color
103 /// Math inset background color
105 /// Macro math inset background color
107 /// Macro math inset background color hovered
108 Color_mathmacrohoverbg,
109 /// Macro math label color
110 Color_mathmacrolabel,
111 /// Macro math frame color
112 Color_mathmacroframe,
113 /// Macro math blended color
114 Color_mathmacroblend,
115 /// Math inset frame color under focus
117 /// Math inset frame color not under focus
122 /// caption frame color
125 /// collapsable insets text
127 /// collapsable insets frame
128 Color_collapsableframe,
130 /// Inset marker background color
132 /// Inset marker frame color
135 /// Error box text color
139 /// Added space colour
141 /// Appendix marker color
145 /// deleted text color
149 /// Top and bottom line color
154 Color_tabularonoffline,
155 /// Bottom area color
162 // FIXME: why are the next four separate ??
163 /// Color used for button frame
165 /// Color used for bottom background
167 /// Color used for buttom under focus
170 // Logical attributes
172 /// Color is inherited
174 /// For ignoring updates of a color
183 RGBColor() : r(0), g(0), b(0) {}
184 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
185 : r(red), g(green), b(blue) {}
188 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
190 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
194 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)