Skip to content

Commit

Permalink
feat: change connect icon to 36 degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jan 30, 2023
1 parent 4a95248 commit abee05e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
14 changes: 8 additions & 6 deletions lib/features/context-pad/ContextPadProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import {
every
} from 'min-dash';

import {
hasPrimaryModifier
} from 'diagram-js/lib/util/Mouse';

import {
is
} from '../../util/ModelUtil';
Expand All @@ -22,9 +26,7 @@ import {
getChildLanes
} from '../modeling/util/LaneUtil';

import {
hasPrimaryModifier
} from 'diagram-js/lib/util/Mouse';
import { connectContextPadIcon as connectIcon } from '../../icons/Icons';


/**
Expand Down Expand Up @@ -425,7 +427,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {

'connect': {
group: 'connect',
className: 'bpmn-icon-connection',
imageUrl: connectIcon,
title: translate(
'Connect using ' +
(businessObject.isForCompensation
Expand All @@ -445,7 +447,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
assign(actions, {
'connect': {
group: 'connect',
className: 'bpmn-icon-connection',
imageUrl: connectIcon,
title: translate('Connect using Association'),
action: {
click: startConnect,
Expand All @@ -459,7 +461,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
assign(actions, {
'connect': {
group: 'connect',
className: 'bpmn-icon-connection',
imageUrl: connectIcon,
title: translate('Connect using DataInputAssociation'),
action: {
click: startConnect,
Expand Down
3 changes: 2 additions & 1 deletion lib/features/palette/PaletteProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
} from 'min-dash';
import { getDi } from '../../util/ModelUtil';

import { connectPaletteIcon as connectIcon } from '../../icons/Icons';

/**
* A palette provider for BPMN 2.0 elements.
Expand Down Expand Up @@ -132,7 +133,7 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
},
'global-connect-tool': {
group: 'tools',
className: 'bpmn-icon-connection',
imageUrl: connectIcon,
title: translate('Activate the global connect tool'),
action: {
click: function(event) {
Expand Down
4 changes: 4 additions & 0 deletions lib/icons/Icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/icons/resources/connect-context-pad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/icons/resources/connect-palette.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit abee05e

Please sign in to comment.