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 /// Collapsable insets text
160 /// Collapsable insets frame
161 Color_collapsableframe,
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 /// Changed text color author 1
183 Color_changedtextauthor1,
184 /// Changed text color author 2
185 Color_changedtextauthor2,
186 /// Changed text color author 3
187 Color_changedtextauthor3,
188 /// Changed text color author 4
189 Color_changedtextauthor4,
190 /// Changed text color author 5
191 Color_changedtextauthor5,
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 buttom under focus
212 /// Color used for the pilcrow sign to mark the end of a paragraph
213 Color_paragraphmarker,
214 /// Preview frame color
217 // Logical attributes
219 /// Color is inherited
221 /// Color for regexp frame
223 /// For ignoring updates of a color
232 RGBColor() : r(0), g(0), b(0) {}
233 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
234 : r(red), g(green), b(blue) {}
237 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
239 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
243 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)