Merge pull request #5944 from mempool/mononaut/tweak-chart-colors

tweak chart colors
This commit is contained in:
wiz
2025-06-29 06:33:12 +09:00
committed by GitHub
8 changed files with 10 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
export const defaultMempoolFeeColors = [ export const defaultMempoolFeeColors = [
'557d00', '497d2b',
'557d00', '557d00',
'5d7d01', '5d7d01',
'637d02', '637d02',
@@ -41,7 +41,7 @@ export const defaultMempoolFeeColors = [
]; ];
export const contrastMempoolFeeColors = [ export const contrastMempoolFeeColors = [
'0082e6', '007be9',
'0082e6', '0082e6',
'0984df', '0984df',
'1285d9', '1285d9',
@@ -123,6 +123,7 @@ export const chartColors = [
"#263238", "#263238",
"#801313", "#801313",
]; ];
export const originalChartColors = chartColors.slice(1);
export const poolsColor = { export const poolsColor = {
'unknown': '#FDD835', 'unknown': '#FDD835',

View File

@@ -5,7 +5,7 @@ import { delay, map, retryWhen, share, startWith, switchMap, tap } from 'rxjs/op
import { ApiService } from '@app/services/api.service'; import { ApiService } from '@app/services/api.service';
import { SeoService } from '@app/services/seo.service'; import { SeoService } from '@app/services/seo.service';
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
import { chartColors, poolsColor } from '@app/app.constants'; import { originalChartColors as chartColors, poolsColor } from '@app/app.constants';
import { StorageService } from '@app/services/storage.service'; import { StorageService } from '@app/services/storage.service';
import { MiningService } from '@app/services/mining.service'; import { MiningService } from '@app/services/mining.service';
import { download } from '@app/shared/graphs.utils'; import { download } from '@app/shared/graphs.utils';

View File

@@ -8,7 +8,7 @@ import { SeoService } from '@app/services/seo.service';
import { StorageService } from '@app//services/storage.service'; import { StorageService } from '@app//services/storage.service';
import { MiningService, MiningStats } from '@app/services/mining.service'; import { MiningService, MiningStats } from '@app/services/mining.service';
import { StateService } from '@app/services/state.service'; import { StateService } from '@app/services/state.service';
import { chartColors, poolsColor } from '@app/app.constants'; import { originalChartColors as chartColors, poolsColor } from '@app/app.constants';
import { RelativeUrlPipe } from '@app/shared/pipes/relative-url/relative-url.pipe'; import { RelativeUrlPipe } from '@app/shared/pipes/relative-url/relative-url.pipe';
import { download } from '@app/shared/graphs.utils'; import { download } from '@app/shared/graphs.utils';
import { isMobile } from '@app/shared/common.utils'; import { isMobile } from '@app/shared/common.utils';

View File

@@ -7,7 +7,7 @@ import { AmountShortenerPipe } from '@app/shared/pipes/amount-shortener.pipe';
import { StateService } from '@app/services/state.service'; import { StateService } from '@app/services/state.service';
import { SeriesOption } from 'echarts'; import { SeriesOption } from 'echarts';
import { WalletStats } from '@app/shared/wallet-stats'; import { WalletStats } from '@app/shared/wallet-stats';
import { chartColors } from '@app/app.constants'; import { originalChartColors as chartColors } from '@app/app.constants';
import { Treasury } from '../../../interfaces/node-api.interface'; import { Treasury } from '../../../interfaces/node-api.interface';

View File

@@ -6,7 +6,7 @@ import { download } from '@app/shared/graphs.utils';
import { isMobile } from '@app/shared/common.utils'; import { isMobile } from '@app/shared/common.utils';
import { WalletStats } from '@app/shared/wallet-stats'; import { WalletStats } from '@app/shared/wallet-stats';
import { AddressTxSummary } from '@interfaces/electrs.interface'; import { AddressTxSummary } from '@interfaces/electrs.interface';
import { chartColors } from '@app/app.constants'; import { originalChartColors as chartColors } from '@app/app.constants';
import { formatNumber } from '@angular/common'; import { formatNumber } from '@angular/common';
import { Treasury } from '@interfaces/node-api.interface'; import { Treasury } from '@interfaces/node-api.interface';

View File

@@ -6,7 +6,7 @@ import { StateService } from '@app/services/state.service';
import { catchError, map, scan, shareReplay, startWith, switchMap, tap } from 'rxjs/operators'; import { catchError, map, scan, shareReplay, startWith, switchMap, tap } from 'rxjs/operators';
import { WalletStats } from '@app/shared/wallet-stats'; import { WalletStats } from '@app/shared/wallet-stats';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { chartColors } from '@app/app.constants'; import { originalChartColors as chartColors } from '@app/app.constants';
import { Treasury } from '@interfaces/node-api.interface'; import { Treasury } from '@interfaces/node-api.interface';
@Component({ @Component({
selector: 'app-treasuries', selector: 'app-treasuries',

View File

@@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, OnInit, HostBinding, NgZone } from
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { EChartsOption, PieSeriesOption } from '@app/graphs/echarts'; import { EChartsOption, PieSeriesOption } from '@app/graphs/echarts';
import { map, Observable, share, tap } from 'rxjs'; import { map, Observable, share, tap } from 'rxjs';
import { chartColors } from '@app/app.constants'; import { originalChartColors as chartColors } from '@app/app.constants';
import { ApiService } from '@app/services/api.service'; import { ApiService } from '@app/services/api.service';
import { SeoService } from '@app/services/seo.service'; import { SeoService } from '@app/services/seo.service';
import { StateService } from '@app/services/state.service'; import { StateService } from '@app/services/state.service';

View File

@@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, OnInit, HostBinding, NgZone, Input
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { EChartsOption, PieSeriesOption } from '@app/graphs/echarts'; import { EChartsOption, PieSeriesOption } from '@app/graphs/echarts';
import { combineLatest, map, Observable, share, startWith, Subject, switchMap, tap } from 'rxjs'; import { combineLatest, map, Observable, share, startWith, Subject, switchMap, tap } from 'rxjs';
import { chartColors } from '@app/app.constants'; import { originalChartColors as chartColors } from '@app/app.constants';
import { ApiService } from '@app/services/api.service'; import { ApiService } from '@app/services/api.service';
import { SeoService } from '@app/services/seo.service'; import { SeoService } from '@app/services/seo.service';
import { StateService } from '@app/services/state.service'; import { StateService } from '@app/services/state.service';