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
36 // Needed interface colors
44 /// Background color of selected text
46 /// Foreground color of selected text
48 /// Text color in LaTeX mode
50 /// The color used for previews
52 /// Inline completion color
53 Color_inlinecompletion,
54 /// Inline completion color for the non-unique part
55 Color_nonunique_inlinecompletion,
57 /// Label color for notes
59 /// Background color of notes
61 /// Label color for comments
63 /// Background color of comments
65 /// Label color for greyedout insets
67 /// Color for greyedout inset text
69 /// Background color of greyedout inset
71 /// Background color of shaded box
73 /// Background color of listings inset
76 /// Label color for branches
78 /// Label color for footnotes
80 /// Label color for index insets
82 /// Label color for margin notes
84 /// Text color for phantom insets
86 /// Label color for URL insets
89 /// Color for URL inset text
92 /// Color for the depth bars in the margin
94 /// Color that indicates when a row can be scrolled
96 /// Color for marking foreign language words
99 /// Text color for command insets
101 /// Background color for command insets
103 /// Frame color for command insets
106 /// Special chars text color
109 /// Graphics inset background color
111 /// Math inset text color
113 /// Math inset background color
115 /// Macro math inset background color
117 /// Macro math inset background color hovered
118 Color_mathmacrohoverbg,
119 /// Macro math label color
120 Color_mathmacrolabel,
121 /// Macro math frame color
122 Color_mathmacroframe,
123 /// Macro math blended color
124 Color_mathmacroblend,
125 /// Macro template color for old parameters
126 Color_mathmacrooldarg,
127 /// Macro template color for new parameters
128 Color_mathmacronewarg,
129 /// Math inset frame color under focus
131 /// Math inset frame color not under focus
136 /// Collapsable insets text
138 /// Collapsable insets frame
139 Color_collapsableframe,
141 /// Inset marker background color
143 /// Inset marker frame color
146 /// Error box text color
148 /// End of line (EOL) marker color
150 /// Added space colour
152 /// Appendix marker color
156 /// Deleted text color
160 /// Changed text color author 1
161 Color_changedtextauthor1,
162 /// Changed text color author 2
163 Color_changedtextauthor2,
164 /// Changed text color author 3
165 Color_changedtextauthor3,
166 /// Changed text color author 4
167 Color_changedtextauthor4,
168 /// Changed text color author 5
169 Color_changedtextauthor5,
170 /// Deleted text modifying color
171 Color_deletedtextmodifier,
175 Color_tabularonoffline,
176 /// Bottom area color
183 // FIXME: why are the next four separate ??
184 /// Color used for button frame
186 /// Color used for bottom background
188 /// Color used for buttom under focus
190 /// Color used for the pilcrow sign to mark the end of a paragraph
191 Color_paragraphmarker,
192 /// Preview frame color
195 // Logical attributes
197 /// Color is inherited
199 /// Color for regexp frame
201 /// For ignoring updates of a color
210 RGBColor() : r(0), g(0), b(0) {}
211 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
212 : r(red), g(green), b(blue) {}
215 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
217 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
221 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)