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
17 /// No particular color---clear or default
19 /// The different text colors
58 // Needed interface colors
66 /// Background color of selected text
68 /// Foreground color of selected math
70 /// Foreground color of selected text
72 /// Text color in LaTeX mode
74 /// The color used for previews
76 /// Inline completion color
77 Color_inlinecompletion,
78 /// Inline completion color for the non-unique part
79 Color_nonunique_inlinecompletion,
81 /// Label color for notes
83 /// Background color of notes
85 /// Label color for comments
87 /// Background color of comments
89 /// Label color for greyedout insets
91 /// Color for greyedout inset text
93 /// Background color of greyedout inset
95 /// Background color of shaded box
97 /// Background color of listings inset
100 /// Label color for branches
102 /// Label color for footnotes
104 /// Label color for index insets
106 /// Label color for margin notes
108 /// Text color for phantom insets
110 /// Label color for URL insets
113 /// Label color 1 for text (layout) labels
115 /// Label color 2 for text (layout) labels
117 /// Label color 3 for text (layout) labels
120 /// Color for URL inset text
123 /// Color for the depth bars in the margin
125 /// Color that indicates when a row can be scrolled
127 /// Color for marking foreign language words
130 /// Text color for command insets
132 /// Background color for command insets
134 /// Frame color for command insets
137 /// Special chars text color
140 /// Graphics inset background color
142 /// Math inset text color
144 /// Math inset background color
146 /// Macro math inset background color
148 /// Macro math inset background color hovered
149 Color_mathmacrohoverbg,
150 /// Macro math label color
151 Color_mathmacrolabel,
152 /// Macro math frame color
153 Color_mathmacroframe,
154 /// Macro math blended color
155 Color_mathmacroblend,
156 /// Macro template color for old parameters
157 Color_mathmacrooldarg,
158 /// Macro template color for new parameters
159 Color_mathmacronewarg,
160 /// Math inset frame color under focus
162 /// Math inset frame color not under focus
164 /// Math empty box line color
167 /// Collapsible insets text
169 /// Collapsible insets frame
170 Color_collapsibleframe,
172 /// Inset marker background color
174 /// Inset marker frame color
176 /// Inset marker label color
179 /// Error box text color
181 /// End of line (EOL) marker color
183 /// Added space colour
185 /// Appendix marker color
189 /// Deleted text color (exported output) in CT
190 Color_deletedtext_output,
191 /// Added text color (exported output) in CT
192 Color_addedtext_output,
193 /// Changed text color author 1 (workarea)
194 Color_changedtext_workarea_author1,
195 /// Changed text color author 2 (workarea)
196 Color_changedtext_workarea_author2,
197 /// Changed text color author 3 (workarea)
198 Color_changedtext_workarea_author3,
199 /// Changed text color author 4 (workarea)
200 Color_changedtext_workarea_author4,
201 /// Changed text color author 5 (workarea)
202 Color_changedtext_workarea_author5,
203 /// Changed text color document comparison (workarea)
204 Color_changedtext_workarea_comparison,
205 /// Deleted text modifying color (for brightness modulation) (workarea)
206 Color_deletedtext_workarea_modifier,
210 Color_tabularonoffline,
211 /// Bottom area color
218 // FIXME: why are the next four separate ??
219 /// Color used for button frame
221 /// Color used for bottom background
223 /// Color used for button under focus
225 /// Text color for broken insets
226 Color_command_broken,
227 /// Background color for broken insets
228 Color_buttonbg_broken,
229 /// Frame color for broken insets
230 Color_buttonframe_broken,
231 /// Color used for broken inset button under focus
232 Color_buttonhoverbg_broken,
233 /// Color used for the pilcrow sign to mark the end of a paragraph
234 Color_paragraphmarker,
235 /// Preview frame color
237 /// Bookmark indicator color
240 // Logical attributes
242 /// Color is inherited
244 /// Color for regexp frame
246 /// For ignoring updates of a color
256 RGBColor() : r(0), g(0), b(0) {}
257 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
258 : r(red), g(green), b(blue) {}
261 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
263 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
267 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)