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 /// Background color of shaded box
72 /// Background color of listings inset
75 /// Label color for branches
77 /// Label color for footnotes
79 /// Label color for index insets
81 /// Label color for margin notes
83 /// Label color for URL insets
86 /// Color for URL inset text
89 /// Color for the depth bars in the margin
91 /// Color for marking foreign language words
94 /// Text color for command insets
96 /// Background color for command insets
98 /// Frame color for command insets
101 /// Special chars text color
104 /// Graphics inset background color
106 /// Math inset text color
108 /// Math inset background color
110 /// Macro math inset background color
112 /// Macro math inset background color hovered
113 Color_mathmacrohoverbg,
114 /// Macro math label color
115 Color_mathmacrolabel,
116 /// Macro math frame color
117 Color_mathmacroframe,
118 /// Macro math blended color
119 Color_mathmacroblend,
120 /// Macro template color for old parameters
121 Color_mathmacrooldarg,
122 /// Macro template color for new parameters
123 Color_mathmacronewarg,
124 /// Math inset frame color under focus
126 /// Math inset frame color not under focus
131 /// caption frame color
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 /// Top and bottom line color
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
189 // Logical attributes
191 /// Color is inherited
193 /// For ignoring updates of a color
202 RGBColor() : r(0), g(0), b(0) {}
203 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
204 : r(red), g(green), b(blue) {}
207 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
209 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
213 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)