Skip to content

Commit

Permalink
The node label outline now has the same color as the node border when…
Browse files Browse the repository at this point in the history
… the node is selected -- #225
  • Loading branch information
chrtannus committed Feb 20, 2024
1 parent 3cc6b59 commit 5cd9eb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/components/network-editor/network-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { parsePathwayName } from './search-contoller';

export const NODE_OPACITY = 1;
export const TEXT_OPACITY = 1;
export const SELECTED_BORDER_COLOR = '#333333';

/** Color range for up-down regulation. */
export const REG_COLOR_RANGE = (() => {
Expand Down Expand Up @@ -156,8 +157,9 @@ export const createNetworkStyle = (cy) => {
selector: 'node:selected',
style: {
'border-width': 8,
'border-color': '#333',
'border-color': SELECTED_BORDER_COLOR,
'border-opacity': 1.0,
'text-outline-color': SELECTED_BORDER_COLOR,
'z-index': 99999999,
}
},
Expand Down

0 comments on commit 5cd9eb6

Please sign in to comment.