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 /// Text color for phantom insets
85 /// Label color for URL insets
88 /// Color for URL inset text
91 /// Color for the depth bars in the margin
93 /// Color for marking foreign language words
96 /// Text color for command insets
98 /// Background color for command insets
100 /// Frame color for command insets
103 /// Special chars text color
106 /// Graphics inset background color
108 /// Math inset text color
110 /// Math inset background color
112 /// Macro math inset background color
114 /// Macro math inset background color hovered
115 Color_mathmacrohoverbg
,
116 /// Macro math label color
117 Color_mathmacrolabel
,
118 /// Macro math frame color
119 Color_mathmacroframe
,
120 /// Macro math blended color
121 Color_mathmacroblend
,
122 /// Macro template color for old parameters
123 Color_mathmacrooldarg
,
124 /// Macro template color for new parameters
125 Color_mathmacronewarg
,
126 /// Math inset frame color under focus
128 /// Math inset frame color not under focus
133 /// Caption frame color
136 /// Collapsable insets text
138 /// Collapsable insets frame
139 Color_collapsableframe
,
141 /// Inset marker background color
143 /// Inset marker frame color
146 /// Error box text color
150 /// Added space colour
152 /// Appendix marker color
156 /// Deleted text color
160 /// Changed text color author 1
161 Color_changedtextauthor1
,
162 /// Changed text color author 2
163 Color_changedtextauthor2
,
164 /// Changed text color author 3
165 Color_changedtextauthor3
,
166 /// Changed text color author 4
167 Color_changedtextauthor4
,
168 /// Changed text color author 5
169 Color_changedtextauthor5
,
170 /// Deleted text modifying color
171 Color_deletedtextmodifier
,
172 /// Top and bottom line color
177 Color_tabularonoffline
,
178 /// Bottom area color
185 // FIXME: why are the next four separate ??
186 /// Color used for button frame
188 /// Color used for bottom background
190 /// Color used for buttom under focus
193 // Logical attributes
195 /// Color is inherited
197 /// For ignoring updates of a color
206 RGBColor() : r(0), g(0), b(0) {}
207 RGBColor(unsigned int red
, unsigned int green
, unsigned int blue
)
208 : r(red
), g(green
), b(blue
) {}
211 inline bool operator==(RGBColor
const & c1
, RGBColor
const & c2
)
213 return (c1
.r
== c2
.r
&& c1
.g
== c2
.g
&& c1
.b
== c2
.b
);
217 inline bool operator!=(RGBColor
const & c1
, RGBColor
const & c2
)