diff --git a/packages/base/src/icons.ts b/packages/base/src/icons.ts index 6d0b86243..a255f8f17 100644 --- a/packages/base/src/icons.ts +++ b/packages/base/src/icons.ts @@ -14,6 +14,7 @@ import visibilitySvgStr from '../style/icons/visibility.svg'; import nonVisibilitySvgStr from '../style/icons/nonvisibility.svg'; import geoJsonSvgStr from '../style/icons/geojson.svg'; import moundSvgStr from '../style/icons/mound.svg'; +import logoMiniQGZ from '../style/icons/logo_mini_qgz.svg'; export const logoIcon = new LabIcon({ name: 'jupytergis::logo', @@ -54,3 +55,8 @@ export const moundIcon = new LabIcon({ name: 'jupytergis::mound', svgstr: moundSvgStr }); + +export const logoMiniIconQGZ = new LabIcon({ + name: 'jupytergis::logoQGZ', + svgstr: logoMiniQGZ +}); diff --git a/packages/base/style/icons/logo_mini_qgz.svg b/packages/base/style/icons/logo_mini_qgz.svg new file mode 100644 index 000000000..5100f477c --- /dev/null +++ b/packages/base/style/icons/logo_mini_qgz.svg @@ -0,0 +1,31 @@ + + + + + + + + + diff --git a/python/jupytergis_qgis/src/plugins.ts b/python/jupytergis_qgis/src/plugins.ts index 45afbb0a8..bdc3e43c2 100644 --- a/python/jupytergis_qgis/src/plugins.ts +++ b/python/jupytergis_qgis/src/plugins.ts @@ -26,7 +26,12 @@ import { PathExt } from '@jupyterlab/coreutils'; import { IRenderMimeRegistry } from '@jupyterlab/rendermime'; import { Widget } from '@lumino/widgets'; -import { JupyterGISWidget, logoMiniIcon, requestAPI } from '@jupytergis/base'; +import { + JupyterGISWidget, + logoMiniIcon, + logoMiniIconQGZ, + requestAPI +} from '@jupytergis/base'; import { JupyterGISWidgetFactory } from '@jupytergis/jupytergis-core'; import { IJupyterGISDocTracker, IJupyterGISWidget } from '@jupytergis/schema'; import { QGSModelFactory, QGZModelFactory } from './modelfactory'; @@ -143,7 +148,7 @@ const activate = async ( extensions: ['.qgz', '.QGZ'], fileFormat: 'base64', contentType: 'QGZ', - icon: logoMiniIcon + icon: logoMiniIconQGZ }); const QGISSharedModelFactory: SharedDocumentFactory = () => { @@ -159,6 +164,7 @@ const activate = async ( ); const widgetCreatedCallback = (sender: any, widget: JupyterGISWidget) => { + widget.title.icon = logoMiniIconQGZ; // Notify the instance tracker if restore data needs to update. widget.context.pathChanged.connect(() => { tracker.save(widget);