diff --git a/packages/base/src/tools.ts b/packages/base/src/tools.ts index df676e74..ca12e40e 100644 --- a/packages/base/src/tools.ts +++ b/packages/base/src/tools.ts @@ -4,6 +4,8 @@ import { LabIcon } from '@jupyterlab/ui-components'; import * as d3Color from 'd3-color'; import logoStr from '../style/icon/logo.svg'; +import stlStr from '../style/icon/stl.svg'; +import stpStr from '../style/icon/stp.svg'; import axesIconStr from '../style/icon/axes.svg'; import boxIconStr from '../style/icon/box.svg'; import coneIconStr from '../style/icon/cone.svg'; @@ -38,6 +40,16 @@ export const logoIcon = new LabIcon({ svgstr: logoStr }); +export const stlIcon = new LabIcon({ + name: 'jupytercad:stl', + svgstr: stlStr +}); + +export const stpIcon = new LabIcon({ + name: 'jupytercad:stp', + svgstr: stpStr +}); + export const minimizeIcon = new LabIcon({ name: 'jupytercad:minimize-icon', svgstr: minimizeIconStr diff --git a/python/jupytercad_core/src/stepplugin/plugins.ts b/python/jupytercad_core/src/stepplugin/plugins.ts index 71965107..48df3973 100644 --- a/python/jupytercad_core/src/stepplugin/plugins.ts +++ b/python/jupytercad_core/src/stepplugin/plugins.ts @@ -19,7 +19,7 @@ import { IThemeManager, WidgetTracker } from '@jupyterlab/apputils'; import { JupyterCadStepModelFactory } from './modelfactory'; import { JupyterCadWidgetFactory } from '../factory'; import { JupyterCadStepDoc } from './model'; -import { logoIcon } from '@jupytercad/base'; +import { stpIcon } from '@jupytercad/base'; const FACTORY = 'JupyterCAD STEP Viewer'; @@ -55,7 +55,7 @@ const activate = ( extensions: ['.step', '.STEP'], fileFormat: 'text', contentType: 'step', - icon: logoIcon + icon: stpIcon }); const stepSharedModelFactory: SharedDocumentFactory = () => { diff --git a/python/jupytercad_core/src/stlplugin/plugins.ts b/python/jupytercad_core/src/stlplugin/plugins.ts index 540c3297..9f957f6c 100644 --- a/python/jupytercad_core/src/stlplugin/plugins.ts +++ b/python/jupytercad_core/src/stlplugin/plugins.ts @@ -19,7 +19,7 @@ import { IThemeManager, WidgetTracker } from '@jupyterlab/apputils'; import { JupyterCadStlModelFactory } from './modelfactory'; import { JupyterCadWidgetFactory } from '../factory'; import { JupyterCadStlDoc } from './model'; -import { logoIcon } from '@jupytercad/base'; +import { stlIcon } from '@jupytercad/base'; const FACTORY = 'JupyterCAD STL Viewer'; @@ -55,7 +55,7 @@ const activate = ( extensions: ['.stl', '.STL'], fileFormat: 'text', contentType: 'stl', - icon: logoIcon + icon: stlIcon }); const stlSharedModelFactory: SharedDocumentFactory = () => {