Skip to content

Commit

Permalink
Add icons in filebrowser (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou authored Oct 8, 2024
1 parent 7f7d28a commit 9d01e1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion python/jupytercad_core/src/jcadplugin/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ const activate = (
mimeTypes: ['text/json'],
extensions: ['.jcad', '.JCAD'],
fileFormat: 'text',
contentType: 'jcad'
contentType: 'jcad',
icon: logoIcon
});

const jcadSharedModelFactory: SharedDocumentFactory = () => {
Expand Down
4 changes: 3 additions & 1 deletion python/jupytercad_core/src/stepplugin/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -53,7 +54,8 @@ const activate = (
mimeTypes: ['text/json'],
extensions: ['.step', '.STEP'],
fileFormat: 'text',
contentType: 'step'
contentType: 'step',
icon: logoIcon
});

const stepSharedModelFactory: SharedDocumentFactory = () => {
Expand Down
4 changes: 3 additions & 1 deletion python/jupytercad_core/src/stlplugin/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -53,7 +54,8 @@ const activate = (
mimeTypes: ['text/json'],
extensions: ['.stl', '.STL'],
fileFormat: 'text',
contentType: 'stl'
contentType: 'stl',
icon: logoIcon
});

const stlSharedModelFactory: SharedDocumentFactory = () => {
Expand Down

0 comments on commit 9d01e1d

Please sign in to comment.