refactor: include SELECTED_ANVIL colour in the theme

main
Josue 4 years ago committed by Tsu-ba-me
parent 09f30eba37
commit 5efd3938e2
  1. 9
      striker-ui/components/Anvils/SelectedAnvil.tsx
  2. 1
      striker-ui/lib/consts/DEFAULT_THEME.ts

@ -3,7 +3,12 @@ import { Switch, Box } from '@material-ui/core';
import { ClassNameMap } from '@material-ui/styles'; import { ClassNameMap } from '@material-ui/styles';
import { makeStyles } from '@material-ui/core/styles'; import { makeStyles } from '@material-ui/core/styles';
import { HeaderText } from '../Text'; import { HeaderText } from '../Text';
import { BLUE, PURPLE_OFF, RED_ON } from '../../lib/consts/DEFAULT_THEME'; import {
BLUE,
PURPLE_OFF,
RED_ON,
SELECTED_ANVIL,
} from '../../lib/consts/DEFAULT_THEME';
import anvilState from '../../lib/consts/ANVILS'; import anvilState from '../../lib/consts/ANVILS';
import { AnvilContext } from '../AnvilContext'; import { AnvilContext } from '../AnvilContext';
@ -11,7 +16,7 @@ const useStyles = makeStyles(() => ({
root: { root: {
width: '100%', width: '100%',
'&:hover $child': { '&:hover $child': {
backgroundColor: '#00ff00', backgroundColor: SELECTED_ANVIL,
}, },
}, },
anvilName: { anvilName: {

@ -11,3 +11,4 @@ export const GREY = '#E5E5E5';
export const HOVER = '#444'; export const HOVER = '#444';
export const UNSELECTED = '#666'; export const UNSELECTED = '#666';
export const DIVIDER = '#888'; export const DIVIDER = '#888';
export const SELECTED_ANVIL = '#00ff00';

Loading…
Cancel
Save