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 /// Foreground color of selected text
49 /// Text color in LaTeX mode
51 /// The color used for previews
53 /// Inline completion color
54 Color_inlinecompletion,
55 /// Inline completion color for the non-unique part
56 Color_nonunique_inlinecompletion,
58 /// Label color for notes
60 /// Background color of notes
62 /// Label color for comments
64 /// Background color of comments
66 /// Label color for greyedout insets
68 /// Color for greyedout inset text
70 /// Background color of greyedout inset
72 /// Background color of shaded box
74 /// Background color of listings inset
77 /// Label color for branches
79 /// Label color for footnotes
81 /// Label color for index insets
83 /// Label color for margin notes
85 /// Text color for phantom insets
87 /// Label color for URL insets
90 /// Color for URL inset text
93 /// Color for the depth bars in the margin
95 /// Color for marking foreign language words
98 /// Text color for command insets
100 /// Background color for command insets
102 /// Frame color for command insets
105 /// Special chars text color
108 /// Graphics inset background color
110 /// Math inset text color
112 /// Math inset background color
114 /// Macro math inset background color
116 /// Macro math inset background color hovered
117 Color_mathmacrohoverbg,
118 /// Macro math label color
119 Color_mathmacrolabel,
120 /// Macro math frame color
121 Color_mathmacroframe,
122 /// Macro math blended color
123 Color_mathmacroblend,
124 /// Macro template color for old parameters
125 Color_mathmacrooldarg,
126 /// Macro template color for new parameters
127 Color_mathmacronewarg,
128 /// Math inset frame color under focus
130 /// Math inset frame color not under focus
135 /// Caption frame color
138 /// Collapsable insets text
140 /// Collapsable insets frame
141 Color_collapsableframe,
143 /// Inset marker background color
145 /// Inset marker frame color
148 /// Error box text color
152 /// Added space colour
154 /// Appendix marker color
158 /// Deleted text color
162 /// Changed text color author 1
163 Color_changedtextauthor1,
164 /// Changed text color author 2
165 Color_changedtextauthor2,
166 /// Changed text color author 3
167 Color_changedtextauthor3,
168 /// Changed text color author 4
169 Color_changedtextauthor4,
170 /// Changed text color author 5
171 Color_changedtextauthor5,
172 /// Deleted text modifying color
173 Color_deletedtextmodifier,
174 /// Top and bottom line color
179 Color_tabularonoffline,
180 /// Bottom area color
187 // FIXME: why are the next four separate ??
188 /// Color used for button frame
190 /// Color used for bottom background
192 /// Color used for buttom under focus
194 /// Color used for the pilcrow sign to mark the end of a paragraph
195 Color_paragraphmarker,
196 /// Preview frame color
199 // Logical attributes
201 /// Color is inherited
203 /// Color for regexp frame
205 /// For ignoring updates of a color
214 RGBColor() : r(0), g(0), b(0) {}
215 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
216 : r(red), g(green), b(blue) {}
219 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
221 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
225 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)