1 | import { Disposable, Package } from '../index';
|
2 |
|
3 | /** Handles loading and activating available themes. */
|
4 | export interface ThemeManager {
|
5 | // Event Subscription
|
6 | /**
|
7 | * Invoke callback when style sheet changes associated with updating the
|
8 | * list of active themes have completed.
|
9 | */
|
10 | onDidChangeActiveThemes(callback: () => void): Disposable;
|
11 |
|
12 | // Accessing Loaded Themes
|
13 | /** Returns an Array of strings of all the loaded theme names. */
|
14 | getLoadedThemeNames(): string[] | undefined;
|
15 |
|
16 | /** Returns an Array of all the loaded themes. */
|
17 | getLoadedThemes(): Package[] | undefined;
|
18 |
|
19 | // Managing Enabled Themes
|
20 | /** Returns an Array of strings all the active theme names. */
|
21 | getActiveThemeNames(): string[] | undefined;
|
22 |
|
23 | /** Returns an Array of all the active themes. */
|
24 | getActiveThemes(): Package[] | undefined;
|
25 |
|
26 | // Managing Enabled Themes
|
27 | /** Get the enabled theme names from the config. */
|
28 | getEnabledThemeNames(): string[];
|
29 | }
|