Scenic.Primitive.Style.Theme (Scenic v0.11.0-beta.0) View Source
Themes are a way to bundle up a set of colors that are intended to be used by components invoked by a scene.
There are a set of pre-defined themes. You can also pass in a map of color values.
Unlike other styles, The currently set theme is given to child components. Each component gets to pick, choose, or ignore any colors in a given style.
Predefined Themes
:dark
- This is the default and most common. Use when the background is dark.:light
- Use when the background is light colored.
Specialty Themes
The remaining themes are designed to color the standard components and don't really make much sense when applied to the root of a graph. You could, but it would be... interesting.
The most obvious place to use them is with Button
components.
:primary
- Blue background. This is the primary button type indicator.:secondary
- Grey background. Not primary type indicator.:success
- Green background.:danger
- Red background. Use for irreversible or dangerous actions.:warning
- Orange background.:info
- Lightish blue background.:text
- Transparent background.