1 | import { ThemeIcon } from '../common/theme';
|
2 | import { URI } from 'vscode-uri';
|
3 | export interface IconDefinition {
|
4 | font?: IconFontContribution;
|
5 | fontCharacter: string;
|
6 | }
|
7 | export interface IconContribution {
|
8 | readonly id: string;
|
9 | description: string | undefined;
|
10 | deprecationMessage?: string;
|
11 | readonly defaults: ThemeIcon | IconDefinition;
|
12 | }
|
13 | export interface IconFontContribution {
|
14 | readonly id: string;
|
15 | readonly definition: IconFontDefinition;
|
16 | }
|
17 | export interface IconFontDefinition {
|
18 | readonly weight?: string;
|
19 | readonly style?: string;
|
20 | readonly src: IconFontSource[];
|
21 | }
|
22 | export interface IconFontSource {
|
23 | readonly location: URI;
|
24 | readonly format: string;
|
25 | }
|
26 | export declare const IconRegistry: unique symbol;
|
27 | export interface IconRegistry {
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | registerIcon(id: string, defaults: ThemeIcon | IconDefinition, description?: string): ThemeIcon;
|
35 | |
36 |
|
37 |
|
38 |
|
39 | deregisterIcon(id: string): void;
|
40 | |
41 |
|
42 |
|
43 |
|
44 |
|
45 | registerIconFont(id: string, definition: IconFontDefinition): IconFontDefinition;
|
46 | |
47 |
|
48 |
|
49 |
|
50 | deregisterIconFont(id: string): void;
|
51 | |
52 |
|
53 |
|
54 |
|
55 | getIconFont(id: string): IconFontDefinition | undefined;
|
56 | }
|
57 |
|
\ | No newline at end of file |