Change to load contrast theme dynamically

This commit is contained in:
jpellizzari
2017-02-17 09:33:18 -08:00
parent 341446fa93
commit f2f474ac80
19 changed files with 190 additions and 89 deletions

View File

@@ -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;