Add IconPath type (#14420)

* Add IconPath type

* Add ThemedIconPath subtype

* Update type
This commit is contained in:
Charles Gagnon
2021-02-24 12:49:54 -08:00
committed by GitHub
parent 587ac45418
commit 4b40d66bca
11 changed files with 34 additions and 36 deletions

View File

@@ -349,7 +349,7 @@ declare module 'azdata' {
export interface RadioCard {
id: string;
descriptions: RadioCardDescription[];
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
icon?: IconPath;
}
export interface RadioCardDescription {
@@ -441,7 +441,7 @@ declare module 'azdata' {
/**
* The path for the icon with optional dark-theme away alternative
*/
iconPath?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
iconPath?: IconPath;
/**
* The height of the icon
*/
@@ -538,7 +538,7 @@ declare module 'azdata' {
/**
* Icon of the tab
*/
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
icon?: IconPath;
}
/**
@@ -820,7 +820,7 @@ declare module 'azdata' {
}
export interface ButtonColumnOption {
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
icon?: IconPath;
}
export interface ButtonCell extends TableCell {
@@ -963,7 +963,7 @@ declare module 'azdata' {
/**
* The icon to be displayed.
*/
icon: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
icon: IconPath;
/**
* The title of the icon.
*/
@@ -974,7 +974,7 @@ declare module 'azdata' {
/**
* The icon to be displayed.
*/
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
icon?: IconPath;
/**
* The title of the button.
*/
@@ -985,7 +985,7 @@ declare module 'azdata' {
/**
* The icon to be displayed.
*/
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
icon?: IconPath;
/**
* The title of the hyperlink.
*/
@@ -1013,7 +1013,7 @@ declare module 'azdata' {
/**
* The icon to use for all the cells in this column.
*/
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
icon?: IconPath;
}
export interface ButtonColumn extends IconColumnOptions, TableColumn {