@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
21 lines • 1.18 kB
TypeScript
import { Disposable } from '../common/disposable.js';
import { Emitter } from '../common/event.js';
import { ColorDefinition, ColorCssVariable } from '../common/color.js';
export declare class ColorRegistry {
protected readonly onDidChangeEmitter: Emitter<void>;
readonly onDidChange: import("../common/event.js").Event<void>;
protected fireDidChange(): void;
getColors(): IterableIterator<string>;
getCurrentCssVariable(id: string): ColorCssVariable | undefined;
/**
* All CSS variables to set for the given color: the primary one from {@link getCurrentCssVariable} and the
* `--vscode-` prefixed alias. VS Code extensions reference colors with the `--vscode-` prefix, e.g. in the
* inline styles of the HTML they render, and Monaco only defines those variables within its own containers.
*/
getCurrentCssVariables(id: string): ColorCssVariable[];
toCssVariableName(id: string, prefix?: string): string;
getCurrentColor(id: string): string | undefined;
register(...definitions: ColorDefinition[]): Disposable;
protected doRegister(definition: ColorDefinition): Disposable;
}
//# sourceMappingURL=color-registry.d.ts.map