Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "SWT/Devel/Gtk/CSS selector"
(Created page with "= Avoiding CSS warnings in console = GTK CSS has a specific format in order to be parsed without warnings. The format is as follows: <widget name/selector> {<property>: <val...") |
|||
Line 2: | Line 2: | ||
GTK CSS has a specific format in order to be parsed without warnings. The format is as follows: | GTK CSS has a specific format in order to be parsed without warnings. The format is as follows: | ||
<widget name/selector> {<property>: <value>;} | <widget name/selector> {<property>: <value>;} | ||
+ | |||
+ | For example: | ||
+ | <source lang=css> | ||
+ | GtkWidget {background-color: rgba(255, 0, 0, 255);} | ||
+ | </source> | ||
Forming CSS strings with this format will not cause any warnings. Additional semi-colons will cause problems. Note that only one semi-colon is needed. | Forming CSS strings with this format will not cause any warnings. Additional semi-colons will cause problems. Note that only one semi-colon is needed. |
Revision as of 15:19, 30 May 2016
Avoiding CSS warnings in console
GTK CSS has a specific format in order to be parsed without warnings. The format is as follows:
<widget name/selector> {<property>: <value>;}
For example:
GtkWidget {background-color: rgba(255, 0, 0, 255);}
Forming CSS strings with this format will not cause any warnings. Additional semi-colons will cause problems. Note that only one semi-colon is needed.