mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Revert "Update the CSS docs for the demise of define-color"
This reverts commit 12d9451b1c
.
This commit is contained in:
parent
a1e03346d9
commit
fa7d77d407
@ -552,11 +552,37 @@ checkbutton:indeterminate {
|
|||||||
GTK+ adds several additional ways to specify colors.
|
GTK+ adds several additional ways to specify colors.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<literallayout><code>〈gtk color〉 = 〈color expression〉| 〈win32 color〉</code>
|
<literallayout><code>〈gtk color〉 = 〈symbolic color〉 | 〈color expression〉| 〈win32 color〉</code>
|
||||||
</literallayout>
|
</literallayout>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
GTK+ allows to form color expressions, which can be nested and
|
The first is a reference to a color defined via a @define-color rule.
|
||||||
|
The syntax for @define-color rules is as follows:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<literallayout><code>〈define color rule〉 = @define-color 〈name〉 〈color〉</code>
|
||||||
|
</literallayout>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
To refer to the color defined by a @define-color rule,
|
||||||
|
use the name from the rule, prefixed with @.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<literallayout><code>〈symbolic color〉 = @〈name〉</code>
|
||||||
|
</literallayout>
|
||||||
|
|
||||||
|
<example><title>An example for defining colors</title>
|
||||||
|
<programlisting><![CDATA[
|
||||||
|
@define-color bg_color #f9a039;
|
||||||
|
|
||||||
|
* {
|
||||||
|
background-color: @bg_color;
|
||||||
|
}
|
||||||
|
]]></programlisting>
|
||||||
|
</example>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
GTK+ also allows to form color expressions, which can be nested and
|
||||||
provide a rich language to define colors which are derived from a
|
provide a rich language to define colors which are derived from a
|
||||||
set of base colors.
|
set of base colors.
|
||||||
</para>
|
</para>
|
||||||
|
@ -480,7 +480,9 @@ We use <literallayout> for syntax productions, and each line is put in a <code>
|
|||||||
<para>
|
<para>
|
||||||
-gtk-icon-palette defines a color palette for recoloring symbolic
|
-gtk-icon-palette defines a color palette for recoloring symbolic
|
||||||
icons. The recognized names for colors in symbolic icons are error,
|
icons. The recognized names for colors in symbolic icons are error,
|
||||||
warning and success.
|
warning and success. The default palette maps these three names to
|
||||||
|
symbolic colors with the names @error_color, @warning_color and
|
||||||
|
@error_color.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<table pgwide="1">
|
<table pgwide="1">
|
||||||
|
Loading…
Reference in New Issue
Block a user