mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Change to load contrast theme dynamically
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
import { NODE_BASE_SIZE } from '../constants/styles';
|
||||
import { isContrastMode } from '../utils/contrast-utils';
|
||||
|
||||
export default function NodeShapeStack(props) {
|
||||
const shift = isContrastMode() ? 0.15 : 0.1;
|
||||
const shift = props.contrastMode ? 0.15 : 0.1;
|
||||
const highlightScale = [1, 1 + shift];
|
||||
const dy = NODE_BASE_SIZE * shift;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user