1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

better contrast in token icons color

This commit is contained in:
Szymon Lesisz 2018-08-17 11:23:43 +02:00
parent 5987c0dbcd
commit 37b83bda14

View File

@ -18,14 +18,14 @@ type Props = {
const SummaryTokens = (props: Props) => {
if (!props.tokens || props.tokens.length < 1) return null;
const bgColor = new ColorHash({ lightness: 0.7 });
const bgColor = new ColorHash({ lightness: 0.16 } );
const textColor = new ColorHash();
const tokens = props.tokens.map((token, index) => {
const iconColor = {
color: textColor.hex(token.name),
background: bgColor.hex(token.name),
borderColor: bgColor.hex(token.name),
color: textColor.hex(token.address),
background: bgColor.hex(token.address),
borderColor: bgColor.hex(token.address),
};
const pendingAmount: BigNumber = stateUtils.getPendingAmount(props.pending, token.symbol, true);