Make colors file explicit (#3721)

* Make colors file explicit

* Remove empty defaultColor
This commit is contained in:
Jaco Greeff 2020-09-19 10:13:46 +02:00 committed by GitHub
parent 139e358a49
commit ce0ac32f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
// defaults
const defaultColor = undefined; // '#f19135'
const emptyColor = '#99999';
// based on chain name
@ -11,6 +10,7 @@ const chainCrab = '#7C30DD';
const chainCrust = '#ff8812';
const chainKulupu = '#003366';
const chainPhala = '#4dc56a';
const chainPlasm = '#2096F3';
const chainPolkadot = '#e6007a';
const chainKusama = '#000000';
const chainRocco = '#6f36dc';
@ -45,6 +45,7 @@ const chainColors: Record<string, any> = [
['Kusama CC3', chainKusama],
['laminar turbulence pc1', chainRococoLaminar],
['phala poc 2', chainPhala],
['Plasm', chainPlasm],
['Polkadot', chainPolkadot],
['Polkadot CC1', chainPolkadot],
['Rococo', chainRocco],
@ -76,7 +77,6 @@ const nodeColors: Record<string, any> = [
}), {});
export {
defaultColor,
chainColors,
emptyColor,
nodeColors

View File

@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { chainColors, nodeColors } from './general';
import { chainColors, nodeColors } from './colors';
import { identityNodes } from './identityIcons';
function sanitize (value?: string): string {

View File

@ -7,7 +7,6 @@ import React, { useMemo } from 'react';
import styled from 'styled-components';
import AccountSidebar from '@polkadot/app-accounts/Sidebar';
import { getSystemChainColor } from '@polkadot/apps-config/ui';
import { defaultColor } from '@polkadot/apps-config/ui/general';
import GlobalStyle from '@polkadot/react-components/styles';
import { useApi } from '@polkadot/react-hooks';
import Signer from '@polkadot/react-signer';
@ -29,7 +28,7 @@ function Apps ({ className = '' }: Props): React.ReactElement<Props> {
return (
<>
<GlobalStyle uiHighlight={defaultColor || uiHighlight} />
<GlobalStyle uiHighlight={uiHighlight} />
<div className={`apps--Wrapper theme--default ${className}`}>
<Menu />
<AccountSidebar>