Next: , Previous: , Up: API  


1.7 (ggg style)

1.7.1 Procedures

Procedure: shade color OPT: amount

COLOR darkened towards black by AMOUNT.

Procedure: style-id-prefix badge-id

A prefix for the SVG ids a style generates for BADGE-ID. Ids have to be valid XML names, so characters such as ’+’ in a glyph id are replaced.

Procedure: style-name value

The canonical style symbol for VALUE, or #f when it names no style. Spaces and underscores become dashes, so "frosted glass" and frosted_glass both mean frosted-glass.

Procedure: style-skin style ctx

The skin of STYLE (a symbol from STYLE-NAMES) for the geometry in CTX.

Procedure: tint color OPT: amount

COLOR lightened towards white by AMOUNT.

1.7.2 Variables

Variable: style-descriptions
((flat . "flat colors with the usual rounded corners (the default)") (square . "sharp, square corners") (shadow . "a subtle shadow just under the content, in the same box as every other style") (plastic . "a glossy highlight and a bright inner bevel") (frosted-glass . "a translucent frost sheen behind a light hairline border") (material . "a Material-style sheen with a soft elevation shade") (frutiger . "glossy Frutiger Aero glass with a sky tint and a bright reflection") (neon . "a dark plate with crisp glowing outlines and bright text"))
Variable: style-names
(flat square shadow plastic frosted-glass material frutiger neon)

Next: (ggg svg), Previous: (ggg prelude), Up: API