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 /// Color for URL inset text
114 /// Color for the depth bars in the margin
116 /// Color that indicates when a row can be scrolled
118 /// Color for marking foreign language words
121 /// Text color for command insets
123 /// Background color for command insets
125 /// Frame color for command insets
128 /// Special chars text color
131 /// Graphics inset background color
133 /// Math inset text color
135 /// Math inset background color
137 /// Macro math inset background color
139 /// Macro math inset background color hovered
140 Color_mathmacrohoverbg,
141 /// Macro math label color
142 Color_mathmacrolabel,
143 /// Macro math frame color
144 Color_mathmacroframe,
145 /// Macro math blended color
146 Color_mathmacroblend,
147 /// Macro template color for old parameters
148 Color_mathmacrooldarg,
149 /// Macro template color for new parameters
150 Color_mathmacronewarg,
151 /// Math inset frame color under focus
153 /// Math inset frame color not under focus
158 /// Collapsible insets text
160 /// Collapsible insets frame
161 Color_collapsibleframe,
163 /// Inset marker background color
165 /// Inset marker frame color
168 /// Error box text color
170 /// End of line (EOL) marker color
172 /// Added space colour
174 /// Appendix marker color
178 /// Deleted text color
182 /// Added text color author 1
183 Color_addedtextauthor1,
184 /// Added text color author 2
185 Color_addedtextauthor2,
186 /// Added text color author 3
187 Color_addedtextauthor3,
188 /// Added text color author 4
189 Color_addedtextauthor4,
190 /// Added text color author 5
191 Color_addedtextauthor5,
192 /// Deleted text modifying color
193 Color_deletedtextmodifier,
197 Color_tabularonoffline,
198 /// Bottom area color
205 // FIXME: why are the next four separate ??
206 /// Color used for button frame
208 /// Color used for bottom background
210 /// Color used for button under focus
212 /// Text color for broken insets
213 Color_command_broken,
214 /// Background color for broken insets
215 Color_buttonbg_broken,
216 /// Frame color for broken insets
217 Color_buttonframe_broken,
218 /// Color used for broken inset button under focus
219 Color_buttonhoverbg_broken,
220 /// Color used for the pilcrow sign to mark the end of a paragraph
221 Color_paragraphmarker,
222 /// Preview frame color
225 // Logical attributes
227 /// Color is inherited
229 /// Color for regexp frame
231 /// For ignoring updates of a color
240 RGBColor() : r(0), g(0), b(0) {}
241 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
242 : r(red), g(green), b(blue) {}
245 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
247 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
251 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)