UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

21 lines (20 loc) 918 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /** * Color scheme used by the OS and by color themes. */ export var ColorScheme; (function (ColorScheme) { ColorScheme['DARK'] = 'dark'; ColorScheme['LIGHT'] = 'light'; ColorScheme['HIGH_CONTRAST_DARK'] = 'hcDark'; ColorScheme['HIGH_CONTRAST_LIGHT'] = 'hcLight'; })(ColorScheme || (ColorScheme = {})); export function isHighContrast(scheme) { return scheme === ColorScheme.HIGH_CONTRAST_DARK || scheme === ColorScheme.HIGH_CONTRAST_LIGHT; } export function isDark(scheme) { return scheme === ColorScheme.DARK || scheme === ColorScheme.HIGH_CONTRAST_DARK; }