Sha256: d5ae902d4426facffcfbfdf72641d719e48c5c2190dc63c3c5db2625c6d4eff3
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
## Themes The template builder (`WhirledPeas.template`) takes an optional `theme` argument. You can provide the name of a predefined theme (run `whirled_peas themes` to see a list with samples) or define you own with the following ```ruby WhirledPeas.register_theme(:my_theme) do |theme| theme.bg_color = :bright_white theme.color = :blue theme.border_color = :bright_green theme.axis_color = :bright_red theme.title_font = :default end ``` Theme settings will be used as default settings throughout the template, however theme settings can be overridden on any element.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whirled_peas-0.11.1 | doc/themes.md |