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 text
70 /// Text color in LaTeX mode
72 /// The color used for previews
74 /// Inline completion color
75 Color_inlinecompletion,
76 /// Inline completion color for the non-unique part
77 Color_nonunique_inlinecompletion,
79 /// Label color for notes
81 /// Background color of notes
83 /// Label color for comments
85 /// Background color of comments
87 /// Label color for greyedout insets
89 /// Color for greyedout inset text
91 /// Background color of greyedout inset
93 /// Background color of shaded box
95 /// Background color of listings inset
98 /// Label color for branches
100 /// Label color for footnotes
102 /// Label color for index insets
104 /// Label color for margin notes
106 /// Text color for phantom insets
108 /// Label color for URL insets
111 /// Label color 1 for text (layout) labels
113 /// Label color 2 for text (layout) labels
115 /// Label color 3 for text (layout) labels
118 /// Color for URL inset text
121 /// Color for the depth bars in the margin
123 /// Color that indicates when a row can be scrolled
125 /// Color for marking foreign language words
128 /// Text color for command insets
130 /// Background color for command insets
132 /// Frame color for command insets
135 /// Special chars text color
138 /// Graphics inset background color
140 /// Math inset text color
142 /// Math inset background color
144 /// Macro math inset background color
146 /// Macro math inset background color hovered
147 Color_mathmacrohoverbg,
148 /// Macro math label color
149 Color_mathmacrolabel,
150 /// Macro math frame color
151 Color_mathmacroframe,
152 /// Macro math blended color
153 Color_mathmacroblend,
154 /// Macro template color for old parameters
155 Color_mathmacrooldarg,
156 /// Macro template color for new parameters
157 Color_mathmacronewarg,
158 /// Math inset frame color under focus
160 /// Math inset frame color not under focus
165 /// Collapsible insets text
167 /// Collapsible insets frame
168 Color_collapsibleframe,
170 /// Inset marker background color
172 /// Inset marker frame color
175 /// Error box text color
177 /// End of line (EOL) marker color
179 /// Added space colour
181 /// Appendix marker color
185 /// Deleted text color (output)
186 Color_deletedtext_output,
187 /// Added text color (output)
188 Color_addedtext_output,
189 /// Changed text color author 1 (workarea)
190 Color_changedtext_workarea_author1,
191 /// Changed text color author 2 (workarea)
192 Color_changedtext_workarea_author2,
193 /// Changed text color author 3 (workarea)
194 Color_changedtext_workarea_author3,
195 /// Changed text color author 4 (workarea)
196 Color_changedtext_workarea_author4,
197 /// Changed text color author 5 (workarea)
198 Color_changedtext_workarea_author5,
199 /// Deleted text modifying color (workarea)
200 Color_deletedtext_workarea_modifier,
204 Color_tabularonoffline,
205 /// Bottom area color
212 // FIXME: why are the next four separate ??
213 /// Color used for button frame
215 /// Color used for bottom background
217 /// Color used for button under focus
219 /// Text color for broken insets
220 Color_command_broken,
221 /// Background color for broken insets
222 Color_buttonbg_broken,
223 /// Frame color for broken insets
224 Color_buttonframe_broken,
225 /// Color used for broken inset button under focus
226 Color_buttonhoverbg_broken,
227 /// Color used for the pilcrow sign to mark the end of a paragraph
228 Color_paragraphmarker,
229 /// Preview frame color
231 /// Bookmark indicator color
234 // Logical attributes
236 /// Color is inherited
238 /// Color for regexp frame
240 /// For ignoring updates of a color
250 RGBColor() : r(0), g(0), b(0) {}
251 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
252 : r(red), g(green), b(blue) {}
255 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
257 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
261 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)