Skip to content

Commit 880c540

Browse files
Add transform icon (#593)
* Add transform icon * Use transform icon in the toolbar --------- Co-authored-by: martinRenou <[email protected]>
1 parent 16cfba8 commit 880c540

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

packages/base/src/commands.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ import {
3434
clippingIcon,
3535
chamferIcon,
3636
filletIcon,
37-
wireframeIcon
37+
wireframeIcon,
38+
transformIcon
3839
} from './tools';
3940
import keybindings from './keybindings.json';
4041
import { DEFAULT_MESH_COLOR } from './3dview/helpers';
@@ -973,7 +974,7 @@ export function addCommands(
973974
current.transform = !current.transform;
974975
commands.notifyCommandChanged(CommandIDs.transform);
975976
},
976-
icon: axesIcon
977+
icon: transformIcon
977978
});
978979

979980
tracker.currentChanged.connect(() => {

packages/base/src/tools.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import logoStr from '../style/icon/logo.svg';
77
import stlStr from '../style/icon/stl.svg';
88
import stpStr from '../style/icon/stp.svg';
99
import axesIconStr from '../style/icon/axes.svg';
10+
import transformIconStr from '../style/icon/transform.svg';
1011
import boxIconStr from '../style/icon/box.svg';
1112
import coneIconStr from '../style/icon/cone.svg';
1213
import cutIconStr from '../style/icon/cut.svg';
@@ -105,6 +106,11 @@ export const axesIcon = new LabIcon({
105106
svgstr: axesIconStr
106107
});
107108

109+
export const transformIcon = new LabIcon({
110+
name: 'jupytercad:transform-icon',
111+
svgstr: transformIconStr
112+
});
113+
108114
export const explodedViewIcon = new LabIcon({
109115
name: 'jupytercad:explodedView-icon',
110116
svgstr: explodedIconStr
Lines changed: 20 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)