Skip to content

Commit fcdb184

Browse files
committed
Change unregulated color in fold change color scheme
1 parent 8eeb97d commit fcdb184

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/BiowcPathwaygraph.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,11 +2328,11 @@ export class BiowcPathwaygraph extends LitElement {
23282328
const downregulatedColor = getComputedStyle(this).getPropertyValue(
23292329
'--downregulated-color'
23302330
);
2331-
const unregulatedColor = getComputedStyle(this).getPropertyValue(
2332-
'--unregulated-color'
2333-
);
23342331
switch (this.hue) {
23352332
case 'direction': {
2333+
const unregulatedColor = getComputedStyle(this).getPropertyValue(
2334+
'--unregulated-color'
2335+
);
23362336
switch ((<PTMNodeD3>node).regulation) {
23372337
case 'up':
23382338
return upregulatedColor;
@@ -2345,6 +2345,9 @@ export class BiowcPathwaygraph extends LitElement {
23452345
}
23462346
}
23472347
case 'foldchange': {
2348+
const unregulatedColor = getComputedStyle(this).getPropertyValue(
2349+
'--unregulated-color-light'
2350+
);
23482351
// Interpolate between up and not or down and not, depending on direction
23492352
// The center of interpolation is 0 for log fold change and 1 for fold change
23502353
const interpolationCenter = this.isLogFoldChange ? 0 : 1;
@@ -3098,7 +3101,7 @@ export class BiowcPathwaygraph extends LitElement {
30983101
'--downregulated-color'
30993102
);
31003103
const unregulatedColor = getComputedStyle(this).getPropertyValue(
3101-
'--unregulated-color'
3104+
'--unregulated-color-light'
31023105
);
31033106

31043107
linearGradient

src/biowc-pathwaygraph.css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default css`
1010
--perturbed-stroke-width: 1.5;
1111
1212
--unregulated-color: #a4a4a4;
13+
--unregulated-color-light: #d3d3d3;
1314
--pathway-color: #89b9ce;
1415
--gene-protein-color: #efefef;
1516
--compound-color: #e7d190;

0 commit comments

Comments
 (0)