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 /// Text color in LaTeX mode
49 /// The color used for previews
51 /// Inline completion color
52 Color_inlinecompletion,
53 /// Inline completion color for the non-unique part
54 Color_nonunique_inlinecompletion,
56 /// Text color for notes
58 /// Background color of notes
60 /// Text color for comments
62 /// Background color of comments
64 /// Text color for greyedout inset
66 /// Background color of greyedout inset
68 /// Shaded box background
71 /// Label color for branches
73 /// Label color for footnotes
75 /// Label color for index insets
77 /// Label color for margin notes
79 /// Label color for URL insets
81 /// Label color for URL text
84 /// Color for the depth bars in the margin
86 /// Color for marking foreign language words
89 /// Text color for command insets
91 /// Background color for command insets
93 /// Frame color for command insets
96 /// Special chars text color
99 /// Graphics inset background color
101 /// Math inset text color
103 /// Math inset background color
105 /// Macro math inset background color
107 /// Macro math inset background color hovered
108 Color_mathmacrohoverbg,
109 /// Macro math label color
110 Color_mathmacrolabel,
111 /// Macro math frame color
112 Color_mathmacroframe,
113 /// Macro math blended color
114 Color_mathmacroblend,
115 /// Macro template color for old parameters
116 Color_mathmacrooldarg,
117 /// Macro template color for new parameters
118 Color_mathmacronewarg,
119 /// Math inset frame color under focus
121 /// Math inset frame color not under focus
126 /// caption frame color
129 /// collapsable insets text
131 /// collapsable insets frame
132 Color_collapsableframe,
134 /// Inset marker background color
136 /// Inset marker frame color
139 /// Error box text color
143 /// Added space colour
145 /// Appendix marker color
149 /// deleted text color
153 /// Top and bottom line color
158 Color_tabularonoffline,
159 /// Bottom area color
166 // FIXME: why are the next four separate ??
167 /// Color used for button frame
169 /// Color used for bottom background
171 /// Color used for buttom under focus
174 // Logical attributes
176 /// Color is inherited
178 /// For ignoring updates of a color
187 RGBColor() : r(0), g(0), b(0) {}
188 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
189 : r(red), g(green), b(blue) {}
192 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
194 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
198 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)