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 for marking foreign language words
97 /// Text color for command insets
99 /// Background color for command insets
101 /// Frame color for command insets
104 /// Special chars text color
107 /// Graphics inset background color
109 /// Math inset text color
111 /// Math inset background color
113 /// Macro math inset background color
115 /// Macro math inset background color hovered
116 Color_mathmacrohoverbg,
117 /// Macro math label color
118 Color_mathmacrolabel,
119 /// Macro math frame color
120 Color_mathmacroframe,
121 /// Macro math blended color
122 Color_mathmacroblend,
123 /// Macro template color for old parameters
124 Color_mathmacrooldarg,
125 /// Macro template color for new parameters
126 Color_mathmacronewarg,
127 /// Math inset frame color under focus
129 /// Math inset frame color not under focus
134 /// Collapsable insets text
136 /// Collapsable insets frame
137 Color_collapsableframe,
139 /// Inset marker background color
141 /// Inset marker frame color
144 /// Error box text color
148 /// Added space colour
150 /// Appendix marker color
154 /// Deleted text color
158 /// Changed text color author 1
159 Color_changedtextauthor1,
160 /// Changed text color author 2
161 Color_changedtextauthor2,
162 /// Changed text color author 3
163 Color_changedtextauthor3,
164 /// Changed text color author 4
165 Color_changedtextauthor4,
166 /// Changed text color author 5
167 Color_changedtextauthor5,
168 /// Deleted text modifying color
169 Color_deletedtextmodifier,
173 Color_tabularonoffline,
174 /// Bottom area color
181 // FIXME: why are the next four separate ??
182 /// Color used for button frame
184 /// Color used for bottom background
186 /// Color used for buttom under focus
188 /// Color used for the pilcrow sign to mark the end of a paragraph
189 Color_paragraphmarker,
190 /// Preview frame color
193 // Logical attributes
195 /// Color is inherited
197 /// Color for regexp frame
199 /// For ignoring updates of a color
208 RGBColor() : r(0), g(0), b(0) {}
209 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
210 : r(red), g(green), b(blue) {}
213 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
215 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
219 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)