From 218bf2f72c5e5b1d44a70e2bf7f597b2979c9880 Mon Sep 17 00:00:00 2001 From: LasaleFamine Date: Sat, 21 Apr 2018 18:16:47 +0200 Subject: [PATCH] chore(get-theme-id): replaced theme settings func with vscode func --- extensions/commands/theme-icons/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/commands/theme-icons/index.ts b/extensions/commands/theme-icons/index.ts index 3d42bbc..93cf51c 100644 --- a/extensions/commands/theme-icons/index.ts +++ b/extensions/commands/theme-icons/index.ts @@ -2,8 +2,8 @@ import {getAccentableIcons} from '../../helpers/fs'; import * as fs from 'fs'; import { getAbsolutePath, getDefaultValues, getThemeIconsByContributeID, getThemeIconsContribute, getVariantIcons } from "../../helpers/fs"; -import { getCurrentThemeIconsID } from "../../helpers/vscode"; -import { isAccent, isMaterialThemeIcons, getThemeSettings, getCustomSettings } from "../../helpers/settings"; +import { getCurrentThemeIconsID, getCurrentThemeID } from "../../helpers/vscode"; +import { isAccent, isMaterialThemeIcons, getCustomSettings } from "../../helpers/settings"; import { CHARSET } from "../../consts/files"; import { IPackageJSONThemeIcons } from "../../interfaces/ipackage.json"; @@ -44,11 +44,11 @@ export const THEME_ICONS = () => { let themeIconsID: string = getCurrentThemeIconsID(); if (isMaterialThemeIcons(themeIconsID)) { - let themeSettings = getThemeSettings(); + let themeID = getCurrentThemeID(); let customSettings = getCustomSettings(); let defaults = getDefaultValues(); let accentName = customSettings.accent; - let variantName: string = getVariantFromColor(themeSettings.colorTheme); + let variantName: string = getVariantFromColor(themeID); let themeContribute: IPackageJSONThemeIcons = getThemeIconsContribute(themeIconsID); let theme: IThemeIcons = getThemeIconsByContributeID(themeIconsID);