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 /// Background color of greyedout inset
70 /// Shaded box background
73 /// Label color for branches
75 /// Label color for footnotes
77 /// Label color for index insets
79 /// Label color for margin notes
81 /// Label color for URL insets
84 /// Color for URL inset text
87 /// Color for the depth bars in the margin
89 /// Color for marking foreign language words
92 /// Text color for command insets
94 /// Background color for command insets
96 /// Frame color for command insets
99 /// Special chars text color
102 /// Graphics inset background color
104 /// Math inset text color
106 /// Math inset background color
108 /// Macro math inset background color
110 /// Macro math inset background color hovered
111 Color_mathmacrohoverbg,
112 /// Macro math label color
113 Color_mathmacrolabel,
114 /// Macro math frame color
115 Color_mathmacroframe,
116 /// Macro math blended color
117 Color_mathmacroblend,
118 /// Macro template color for old parameters
119 Color_mathmacrooldarg,
120 /// Macro template color for new parameters
121 Color_mathmacronewarg,
122 /// Math inset frame color under focus
124 /// Math inset frame color not under focus
129 /// caption frame color
132 /// collapsable insets text
134 /// collapsable insets frame
135 Color_collapsableframe,
137 /// Inset marker background color
139 /// Inset marker frame color
142 /// Error box text color
146 /// Added space colour
148 /// Appendix marker color
152 /// deleted text color
156 /// Top and bottom line color
161 Color_tabularonoffline,
162 /// Bottom area color
169 // FIXME: why are the next four separate ??
170 /// Color used for button frame
172 /// Color used for bottom background
174 /// Color used for buttom under focus
177 // Logical attributes
179 /// Color is inherited
181 /// For ignoring updates of a color
190 RGBColor() : r(0), g(0), b(0) {}
191 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
192 : r(red), g(green), b(blue) {}
195 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
197 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
201 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)