chore: dumped theme setter

This commit is contained in:
OctoD 2017-05-29 18:01:12 +02:00
parent 56521a9d0e
commit 4329d419a8
2 changed files with 0 additions and 26 deletions

View file

@ -1,18 +0,0 @@
import * as vscode from 'vscode';
import { THEMES } from './themes';
export const COMMAND_THEME_SETTER = () => {
vscode.window.showQuickPick(Object.keys(THEMES)).then(themeSelected => {
vscode.workspace.getConfiguration().update('workbench.colorTheme', THEMES[themeSelected], true).then(() => {
if (themeSelected === undefined) return;
vscode.window.showInformationMessage(`${ themeSelected } theme set.`);
}, () => {
if (themeSelected === undefined) return;
vscode.window.showErrorMessage(`Cannot set theme ${ themeSelected }, please report this bug to the Material theme devs.`);
});
});
};

View file

@ -1,8 +0,0 @@
import { IGenericObject } from "../interfaces/igeneric-object";
export const THEMES: IGenericObject<string> = {
Default: 'Material Theme',
Darker: 'Material Theme Darker',
Lighter: 'Material Theme Lighter',
'Pale night': 'Material Theme Palenight'
}