From e2eccf6e85134ba3e1ed99607b7a5cfed3e09716 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Sun, 19 Feb 2023 17:14:49 +0900 Subject: [PATCH] Remove hardcoded mining pools colors as it's not relevant --- frontend/src/app/app.constants.ts | 18 +++--------------- .../pool-ranking/pool-ranking.component.ts | 2 +- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/frontend/src/app/app.constants.ts b/frontend/src/app/app.constants.ts index 5cc446dbf..8a954166e 100644 --- a/frontend/src/app/app.constants.ts +++ b/frontend/src/app/app.constants.ts @@ -72,22 +72,10 @@ export const chartColors = [ ]; export const poolsColor = { - 'foundryusa': '#D81B60', - 'antpool': '#8E24AA', - 'f2pool': '#5E35B1', - 'poolin': '#3949AB', - 'binancepool': '#1E88E5', - 'viabtc': '#039BE5', - 'btccom': '#00897B', - 'braiinspool': '#00ACC1', - 'sbicrypto': '#43A047', - 'marapool': '#7CB342', - 'luxor': '#C0CA33', - 'unknown': '#FDD835', - 'okkong': '#FFB300', -} + 'unknown': '#9C9C9C', +}; - export const feeLevels = [1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 125, 150, 175, 200, +export const feeLevels = [1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 125, 150, 175, 200, 250, 300, 350, 400, 500, 600, 700, 800, 900, 1000, 1200, 1400, 1600, 1800, 2000]; export interface Language { diff --git a/frontend/src/app/components/pool-ranking/pool-ranking.component.ts b/frontend/src/app/components/pool-ranking/pool-ranking.component.ts index 3460470ce..214318bd5 100644 --- a/frontend/src/app/components/pool-ranking/pool-ranking.component.ts +++ b/frontend/src/app/components/pool-ranking/pool-ranking.component.ts @@ -176,7 +176,7 @@ export class PoolRankingComponent implements OnInit { // 'Other' data.push({ itemStyle: { - color: 'grey', + color: '#6b6b6b', }, value: totalShareOther, name: 'Other' + (isMobile() ? `` : ` (${totalShareOther.toFixed(2)}%)`),