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 /// Label color for notes
58 /// Background color of notes
60 /// Label color for comments
62 /// Background color of comments
64 /// Label color for greyedout insets
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
82 /// Color for URL inset text
85 /// Color for the depth bars in the margin
87 /// Color for marking foreign language words
90 /// Text color for command insets
92 /// Background color for command insets
94 /// Frame color for command insets
97 /// Special chars text color
100 /// Graphics inset background color
102 /// Math inset text color
104 /// Math inset background color
106 /// Macro math inset background color
108 /// Macro math inset background color hovered
109 Color_mathmacrohoverbg,
110 /// Macro math label color
111 Color_mathmacrolabel,
112 /// Macro math frame color
113 Color_mathmacroframe,
114 /// Macro math blended color
115 Color_mathmacroblend,
116 /// Macro template color for old parameters
117 Color_mathmacrooldarg,
118 /// Macro template color for new parameters
119 Color_mathmacronewarg,
120 /// Math inset frame color under focus
122 /// Math inset frame color not under focus
127 /// caption frame color
130 /// collapsable insets text
132 /// collapsable insets frame
133 Color_collapsableframe,
135 /// Inset marker background color
137 /// Inset marker frame color
140 /// Error box text color
144 /// Added space colour
146 /// Appendix marker color
150 /// deleted text color
154 /// Top and bottom line color
159 Color_tabularonoffline,
160 /// Bottom area color
167 // FIXME: why are the next four separate ??
168 /// Color used for button frame
170 /// Color used for bottom background
172 /// Color used for buttom under focus
175 // Logical attributes
177 /// Color is inherited
179 /// For ignoring updates of a color
188 RGBColor() : r(0), g(0), b(0) {}
189 RGBColor(unsigned int red, unsigned int green, unsigned int blue)
190 : r(red), g(green), b(blue) {}
193 inline bool operator==(RGBColor const & c1, RGBColor const & c2)
195 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
199 inline bool operator!=(RGBColor const & c1, RGBColor const & c2)