From aff89fb3dbebb4a25893bec6a15e1aa12301f923 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Tue, 8 Oct 2024 17:42:39 +0200 Subject: [PATCH] Add icons in filebrowser --- python/jupytercad_core/src/jcadplugin/plugins.ts | 3 ++- python/jupytercad_core/src/stepplugin/plugins.ts | 4 +++- python/jupytercad_core/src/stlplugin/plugins.ts | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python/jupytercad_core/src/jcadplugin/plugins.ts b/python/jupytercad_core/src/jcadplugin/plugins.ts index 7a452dd2..c6e2b9bc 100644 --- a/python/jupytercad_core/src/jcadplugin/plugins.ts +++ b/python/jupytercad_core/src/jcadplugin/plugins.ts @@ -85,7 +85,8 @@ const activate = ( mimeTypes: ['text/json'], extensions: ['.jcad', '.JCAD'], fileFormat: 'text', - contentType: 'jcad' + contentType: 'jcad', + icon: logoIcon }); const jcadSharedModelFactory: SharedDocumentFactory = () => { diff --git a/python/jupytercad_core/src/stepplugin/plugins.ts b/python/jupytercad_core/src/stepplugin/plugins.ts index 2e268f8f..b7836cef 100644 --- a/python/jupytercad_core/src/stepplugin/plugins.ts +++ b/python/jupytercad_core/src/stepplugin/plugins.ts @@ -19,6 +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'; const FACTORY = 'JupyterCAD STEP Viewer'; @@ -53,7 +54,8 @@ const activate = ( mimeTypes: ['text/json'], extensions: ['.step', '.STEP'], fileFormat: 'text', - contentType: 'step' + contentType: 'step', + icon: logoIcon }); const stepSharedModelFactory: SharedDocumentFactory = () => { diff --git a/python/jupytercad_core/src/stlplugin/plugins.ts b/python/jupytercad_core/src/stlplugin/plugins.ts index 86aeada3..7711890f 100644 --- a/python/jupytercad_core/src/stlplugin/plugins.ts +++ b/python/jupytercad_core/src/stlplugin/plugins.ts @@ -19,6 +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'; const FACTORY = 'JupyterCAD STL Viewer'; @@ -53,7 +54,8 @@ const activate = ( mimeTypes: ['text/json'], extensions: ['.stl', '.STL'], fileFormat: 'text', - contentType: 'stl' + contentType: 'stl', + icon: logoIcon }); const stlSharedModelFactory: SharedDocumentFactory = () => {