mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
27 lines
605 B
JavaScript
27 lines
605 B
JavaScript
![]() |
/**
|
||
|
* Telescope theme settings and methods.
|
||
|
* @namespace Telescope.theme
|
||
|
*/
|
||
|
Telescope.theme = {};
|
||
|
|
||
|
/**
|
||
|
* Default settings for Telescope themes.
|
||
|
* @type {Object}
|
||
|
*/
|
||
|
Telescope.theme.settings = {
|
||
|
useDropdowns: true // Enable/disable dropdown menus in a theme
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* Get a theme setting value.
|
||
|
* @param {String} setting
|
||
|
* @param {String} defaultValue
|
||
|
*/
|
||
|
Telescope.theme.getSetting = function (setting, defaultValue) {
|
||
|
if (typeof this.settings[setting] !== 'undefined') {
|
||
|
return this.settings[setting];
|
||
|
} else {
|
||
|
return typeof defaultValue === 'undefined' ? '' : defaultValue;
|
||
|
}
|
||
|
};
|