OXYGENHUB
◆ main oxygen-vscode / src / style.ts
447 B · last changed 0.15.0: a splash of colour 1 month ago source blame history raw
1
// A splash of colour: icons tinted with the Oxygen palette (the colours
2
// package.json contributes, so themes can override them).
3
4
import * as vscode from "vscode";
5
6
/** A codicon, tinted with a contributed or theme colour. */
7
export function icon(id: string, color?: string): vscode.ThemeIcon {
8
  return new vscode.ThemeIcon(id, color ? new vscode.ThemeColor(color) : undefined);
9
}
10
11
export { operationLook, type OperationLook } from "./looks";