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 /// Collapsable insets text
137 /// Collapsable insets frame
138 Color_collapsableframe,
140 /// Inset marker background color
142 /// Inset marker frame color
145 /// Error box text color
149 /// Added space colour
151 /// Appendix marker color
155 /// Deleted text color
159 /// Changed text color author 1
160 Color_changedtextauthor1,
161 /// Changed text color author 2
162 Color_changedtextauthor2,
163 /// Changed text color author 3
164 Color_changedtextauthor3,
165 /// Changed text color author 4
166 Color_changedtextauthor4,
167 /// Changed text color author 5
168 Color_changedtextauthor5,
169 /// Deleted text modifying color
170 Color_deletedtextmodifier,
174 Color_tabularonoffline,
175 /// Bottom area color
182 // FIXME: why are the next four separate ??
183 /// Color used for button frame
185 /// Color used for bottom background
187 /// Color used for buttom under focus
189 /// Color used for the pilcrow sign to mark the end of a paragraph
190 Color_paragraphmarker,
191 /// Preview frame color
194 // Logical attributes
196 /// Color is inherited
198 /// Color for regexp frame
200 /// For ignoring updates of a color
209 RGBColor() : r(0), g(0), b(0) {}
210 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
211 : r(red), g(green), b(blue) {}
214 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
216 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
220 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)