Commit 84c44abe authored by Alexander.Trofimov's avatar Alexander.Trofimov

change GetThemesColors

parent f1346b5c
...@@ -151,25 +151,21 @@ ...@@ -151,25 +151,21 @@
/** /**
* Returns an object that represents the active sheet * Returns an object that represents the active sheet
* @memberof Api * @memberof Api
* @returns {ThemesColors} * @returns {array}
*/ */
Api.prototype.GetThemesColors = function () { Api.prototype.GetThemesColors = function () {
/** var result = [];
* @enum AscCommon.g_oUserColorScheme.forEach(function (item) {
* @name ThemesColors result.push(item.get_name());
*/
var result = {};
AscCommon.g_oUserColorScheme.forEach(function (item, i) {
result[item.get_name()] = i;
}); });
return result; return result;
}; };
/** /**
* Returns an object that represents the active sheet * Set theme colors
* @memberof Api * @memberof Api
* @param {ThemesColors | string} theme * @param {string | number} theme
*/ */
Api.prototype.SetThemeColors = function (theme) { Api.prototype.SetThemeColors = function (theme) {
if ('string' === typeof theme) { if ('string' === typeof theme) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment