Lines Matching refs:theme
72 * **themes**: A themeset to use when selecting the theme to use. Defaults
74 * **theme**: Select a theme for use, it can be a:
76 * The name of a theme, which will be looked up in the current *themes*
80 a default theme selection.
82 If no theme is selected then a default is picked using a combination of our
154 Change the themeset to select a theme from. The same as the `themes` option
155 used in the constructor. The theme will be reselected from this themeset.
157 #### `gauge.setTheme(theme)`
159 Change the active theme, will be displayed with the next show or pulse. This can be:
162 * The name of a theme, which will be looked up in the current *themes*
166 a default theme selection.
168 If no theme is selected then a default is picked using a combination of our
189 // fetch the default color unicode theme for this platform
192 // fetch the default non-color unicode theme for osx
195 // create a new theme based on the color ascii theme for this platform
197 var ourTheme = themes.newTheme(theme(hasUnicode: false, hasColor: true}), {
206 var ThemeSet = require('gauge/theme-set')
216 Theme objects are a function that fetches the default theme based on
221 * **hasUnicode** - If true, fetch a unicode theme, if no unicode theme is
222 available then a non-unicode theme will be used.
223 * **hasColor** - If true, fetch a color theme, if no color theme is
224 available a non-color theme will be used.
228 If no compatible theme can be found then an error will be thrown with a
234 Adds a named theme to the themeset. You can pass in either a theme object,
245 Returns the theme object from this theme set named `name`.
254 * **platform** - Defaults to `'fallback'`. If your theme is platform
257 * **hasUnicode** - Defaults to `false`. If your theme uses unicode you
259 * **hasColor** - Defaults to `false`. If your theme uses color you should
262 `themeName` is the name of the theme (as given to `addTheme`) to use for
267 Create a new theme object based on `parentTheme`. If no `parentTheme` is
270 fallback parent is defined in `gauge/base-theme`.)
283 * **activityIndicatorTheme** - The theme for the activity indicator (spinner),
290 templates. The properties in the theme are used when their name matches a type in
294 * **function (values, theme, width)** - Should return what you want in your output.
296 *theme* is the theme specific to this item (see below) or this theme object,
306 * **Theme** - Its value is passed to a function-type item as the theme.
308 #### themes.addToAllThemes(theme)
310 This *mixes-in* `theme` into all themes currently defined. It also adds it
311 to the default parent theme for this themeset, so future themes added to
312 this themeset will get the values from `theme` by default.
337 any keys you have on a custom theme.
341 from your active theme.
343 using the `progressbarTheme` from your active theme.
365 var gauge = new Plumbing(theme, template, width)
368 * **theme**: The theme to use.
372 #### `gauge.setTheme(theme)`
374 Change the active theme.
398 Using `status` for values, render the provided template with the theme and return