sussudio
Version:
An unofficial VS Code Internal API
33 lines (32 loc) • 1.85 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Event } from "../../../base/common/event.mjs";
import { Disposable } from "../../../base/common/lifecycle.mjs";
import { IConfigurationService } from "../../configuration/common/configuration.mjs";
import { IStateMainService } from "../../state/electron-main/state.mjs";
import { IPartsSplash } from "../common/themeService.mjs";
import { IColorScheme } from "../../window/common/window.mjs";
export declare const IThemeMainService: import("../../instantiation/common/instantiation.mjs").ServiceIdentifier<IThemeMainService>;
export interface IThemeMainService {
readonly _serviceBrand: undefined;
readonly onDidChangeColorScheme: Event<IColorScheme>;
getBackgroundColor(): string;
saveWindowSplash(windowId: number | undefined, splash: IPartsSplash): void;
getWindowSplash(): IPartsSplash | undefined;
getColorScheme(): IColorScheme;
}
export declare class ThemeMainService extends Disposable implements IThemeMainService {
private stateMainService;
private configurationService;
readonly _serviceBrand: undefined;
private readonly _onDidChangeColorScheme;
readonly onDidChangeColorScheme: Event<IColorScheme>;
constructor(stateMainService: IStateMainService, configurationService: IConfigurationService);
getColorScheme(): IColorScheme;
getBackgroundColor(): string;
saveWindowSplash(windowId: number | undefined, splash: IPartsSplash): void;
private updateBackgroundColor;
getWindowSplash(): IPartsSplash | undefined;
}