Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions packages/base/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { LabIcon, redoIcon, undoIcon } from '@jupyterlab/ui-components';
import { geoJSONIcon, moundIcon, rasterIcon } from './icons';
import {
bookOpenIcon,
clockIcon,
geoJSONIcon,
infoIcon,
moundIcon,
rasterIcon,
vectorSquareIcon
} from './icons';

/**
* The command IDs.
Expand Down Expand Up @@ -95,18 +103,18 @@ const iconObject = {

[CommandIDs.redo]: { icon: redoIcon },
[CommandIDs.undo]: { icon: undoIcon },
[CommandIDs.openLayerBrowser]: { iconClass: 'fa fa-book-open' },
[CommandIDs.openLayerBrowser]: { icon: bookOpenIcon },
[CommandIDs.newRasterEntry]: { icon: rasterIcon },
[CommandIDs.newVectorTileEntry]: { iconClass: 'fa fa-vector-square' },
[CommandIDs.newVectorTileEntry]: { icon: vectorSquareIcon },
[CommandIDs.newGeoJSONEntry]: { icon: geoJSONIcon },
[CommandIDs.newHillshadeEntry]: { icon: moundIcon },
[CommandIDs.newImageEntry]: { iconClass: 'fa fa-image' },
[CommandIDs.newVideoEntry]: { iconClass: 'fa fa-video' },
[CommandIDs.newShapefileLayer]: { iconClass: 'fa fa-file' },
[CommandIDs.newGeoTiffEntry]: { iconClass: 'fa fa-image' },
[CommandIDs.symbology]: { iconClass: 'fa fa-brush' },
[CommandIDs.identify]: { iconClass: 'fa fa-info' },
[CommandIDs.temporalController]: { iconClass: 'fa fa-clock' }
[CommandIDs.identify]: { icon: infoIcon },
[CommandIDs.temporalController]: { icon: clockIcon }
};

/**
Expand Down
30 changes: 30 additions & 0 deletions packages/base/src/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ 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';
import bookOpenSvgStr from '../style/icons/book_open.svg';
import vectorSquareSvgStr from '../style/icons/vector_square.svg';
import infoSvgStr from '../style/icons/info-solid.svg';
import clockSvgStr from '../style/icons/clock-solid.svg';
import terminalToolbarSvgStr from '../style/icons/terminal_toolbar.svg';

export const logoIcon = new LabIcon({
name: 'jupytergis::logo',
Expand Down Expand Up @@ -60,3 +65,28 @@ export const logoMiniIconQGZ = new LabIcon({
name: 'jupytergis::logoQGZ',
svgstr: logoMiniQGZ
});

export const bookOpenIcon = new LabIcon({
name: 'jupytergis::bookOpen',
svgstr: bookOpenSvgStr
});

export const vectorSquareIcon = new LabIcon({
name: 'jupytergis::vectorSquare',
svgstr: vectorSquareSvgStr
});

export const infoIcon = new LabIcon({
name: 'jupytergis::info',
svgstr: infoSvgStr
});

export const clockIcon = new LabIcon({
name: 'jupytergis::clock',
svgstr: clockSvgStr
});

export const terminalToolbarIcon = new LabIcon({
name: 'jupytergis::terminalToolbar',
svgstr: terminalToolbarSvgStr
});
5 changes: 2 additions & 3 deletions packages/base/src/toolbar/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ import {
ToolbarButton,
addIcon,
redoIcon,
terminalIcon,
undoIcon
} from '@jupyterlab/ui-components';
import { CommandRegistry } from '@lumino/commands';
import { Menu, Widget } from '@lumino/widgets';

import * as React from 'react';
import { CommandIDs } from '../constants';
import { rasterIcon } from '../icons';
import { rasterIcon, terminalToolbarIcon } from '../icons';
import { UsersItem } from './usertoolbaritem';

export const TOOLBAR_SEPARATOR_CLASS = 'jGIS-Toolbar-Separator';
Expand Down Expand Up @@ -67,7 +66,7 @@ export class ToolbarWidget extends ReactiveToolbar {
id: CommandIDs.toggleConsole,
commands: options.commands,
label: '',
icon: terminalIcon
icon: terminalToolbarIcon
})
);

Expand Down
19 changes: 19 additions & 0 deletions packages/base/style/icons/book_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions packages/base/style/icons/clock-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions packages/base/style/icons/info-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions packages/base/style/icons/raster.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/base/style/icons/terminal_toolbar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions packages/base/style/icons/vector_square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.