Lines Matching refs:theme
50 this._theme = options.theme
51 var theme = this._computeTheme(options.theme)
60 this._gauge = new PlumbingClass(theme, template, this.getWidth())
85 Gauge.prototype._computeTheme = function (theme) { argument
86 if (!theme) theme = {}
87 if (typeof theme === 'string') {
88 theme = this._themes.getTheme(theme)
89 …} else if (theme && (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor…
90 var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode
91 var useColor = theme.hasColor == null ? hasColor : theme.hasColor
92 …theme = this._themes.getDefault({hasUnicode: useUnicode, hasColor: useColor, platform: theme.platf…
94 return theme
102 Gauge.prototype.setTheme = function (theme) { argument
103 this._gauge.setTheme(this._computeTheme(theme))
105 this._theme = theme