@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
30 lines • 1.41 kB
TypeScript
import { ContributionProvider } from '../common/contribution-provider.js';
import { Theme, ThemeType } from '../common/theme.js';
import { ColorRegistry } from './color-registry.js';
import { FrontendApplicationContribution } from './frontend-application-contribution.js';
import { ThemeService } from './theming.js';
import { SecondaryWindowService } from './window/secondary-window-service.js';
export declare const StylingParticipant: unique symbol;
export interface StylingParticipant {
registerThemeStyle(theme: ColorTheme, collector: CssStyleCollector): void;
}
export interface ColorTheme {
type: ThemeType;
label: string;
getColor(color: string): string | undefined;
}
export interface CssStyleCollector {
addRule(rule: string): void;
}
export declare class StylingService implements FrontendApplicationContribution {
protected cssElements: Map<Window, HTMLStyleElement>;
protected readonly themeService: ThemeService;
protected readonly colorRegistry: ColorRegistry;
protected readonly themingParticipants: ContributionProvider<StylingParticipant>;
protected readonly secondaryWindowService: SecondaryWindowService;
onStart(): void;
registerWindow(win: Window): void;
protected applyStylingToWindows(theme: Theme): void;
protected applyStyling(theme: Theme, cssElement: HTMLStyleElement): void;
}
//# sourceMappingURL=styling-service.d.ts.map