Leo style sheets now support all colors names in Leo's color_db, defined in
leoColor.py.
For example, the following setting works without any explicit definition of
mistyrose2.
@color head-bg = @mistyrose2
These colors are (mostly) the same as:
http://www.yourhtmlsource.com/stylesheets/namedcolours.html
I think this is an important addition to stylesheets. I don't expect any
problems because it was so easy to do. But one never knows...
The new print-style-sheet command prints the top-level stylesheet to the
console.
One nice feature of using the color_db is that the substitution code puts
the color name in comments in the style sheet. For example::
QPushButton[button_kind="at-button"] {
/* Buttons created by @button nodes. */
background-color: #CAE1FF /* lightsteelblue1 */;
}
Note that the "Color Definitions" node in LeoSettings.leo now defines just
two colors: LeoGreen and LeoYellow.
Edward
P.S. Terry, following your comments, ssm.expand_css_constants no longer
calls ssm.find_constants_defined. The old code could be turned back on
quickly if you like.
EKR
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.