Skip to content

Commit 3479318

Browse files
committed
Apply liquid glass theme to charts with enhanced tooltips and swap npubs/all line colors
1 parent 5acd741 commit 3479318

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src/components/charts/LineRaceChart/LineRaceChart.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ export const LineRaceChart: React.FC = () => {
4343
color: new graphic.LinearGradient(0, 0, 1, 0, [
4444
{
4545
offset: 0,
46-
color: 'rgba(51, 156, 253, 0.9)',
46+
color: 'rgba(142, 48, 235, 0.9)',
4747
},
4848
{
4949
offset: 1,
50-
color: 'rgba(51, 156, 253, 0.6)',
50+
color: 'rgba(142, 48, 235, 0.6)',
5151
},
5252
]),
5353
width: 3,
54-
shadowColor: 'rgba(51, 156, 253, 0.3)',
54+
shadowColor: 'rgba(142, 48, 235, 0.3)',
5555
shadowBlur: 10,
5656
shadowOffsetY: 3,
5757
},
5858
itemStyle: {
59-
color: 'rgba(51, 156, 253, 0.9)',
59+
color: 'rgba(142, 48, 235, 0.9)',
6060
borderColor: 'rgba(255, 255, 255, 0.9)',
6161
borderWidth: 2,
6262
},
@@ -65,11 +65,11 @@ export const LineRaceChart: React.FC = () => {
6565
color: new graphic.LinearGradient(0, 0, 0, 1, [
6666
{
6767
offset: 0,
68-
color: 'rgba(51, 156, 253, 0.3)',
68+
color: 'rgba(142, 48, 235, 0.3)',
6969
},
7070
{
7171
offset: 1,
72-
color: 'rgba(51, 156, 253, 0.05)',
72+
color: 'rgba(142, 48, 235, 0.05)',
7373
},
7474
]),
7575
},
@@ -90,13 +90,13 @@ export const LineRaceChart: React.FC = () => {
9090
showSymbol: true,
9191
lineStyle: {
9292
width: 4,
93-
shadowColor: 'rgba(51, 156, 253, 0.6)',
93+
shadowColor: 'rgba(142, 48, 235, 0.6)',
9494
shadowBlur: 15,
9595
},
9696
itemStyle: {
9797
borderColor: '#fff',
9898
borderWidth: 3,
99-
shadowColor: 'rgba(51, 156, 253, 0.5)',
99+
shadowColor: 'rgba(142, 48, 235, 0.5)',
100100
shadowBlur: 10,
101101
},
102102
},
@@ -274,20 +274,20 @@ export const LineRaceChart: React.FC = () => {
274274
color: new graphic.LinearGradient(0, 0, 1, 0, [
275275
{
276276
offset: 0,
277-
color: 'rgba(142, 48, 235, 0.9)',
277+
color: 'rgba(51, 156, 253, 0.9)',
278278
},
279279
{
280280
offset: 1,
281-
color: 'rgba(142, 48, 235, 0.6)',
281+
color: 'rgba(51, 156, 253, 0.6)',
282282
},
283283
]),
284284
width: 3,
285-
shadowColor: 'rgba(142, 48, 235, 0.3)',
285+
shadowColor: 'rgba(51, 156, 253, 0.3)',
286286
shadowBlur: 10,
287287
shadowOffsetY: 3,
288288
},
289289
itemStyle: {
290-
color: 'rgba(142, 48, 235, 0.9)',
290+
color: 'rgba(51, 156, 253, 0.9)',
291291
borderColor: 'rgba(255, 255, 255, 0.9)',
292292
borderWidth: 2,
293293
},
@@ -296,11 +296,11 @@ export const LineRaceChart: React.FC = () => {
296296
color: new graphic.LinearGradient(0, 0, 0, 1, [
297297
{
298298
offset: 0,
299-
color: 'rgba(142, 48, 235, 0.3)',
299+
color: 'rgba(51, 156, 253, 0.3)',
300300
},
301301
{
302302
offset: 1,
303-
color: 'rgba(142, 48, 235, 0.05)',
303+
color: 'rgba(51, 156, 253, 0.05)',
304304
},
305305
]),
306306
},
@@ -321,13 +321,13 @@ export const LineRaceChart: React.FC = () => {
321321
showSymbol: true,
322322
lineStyle: {
323323
width: 4,
324-
shadowColor: 'rgba(142, 48, 235, 0.6)',
324+
shadowColor: 'rgba(51, 156, 253, 0.6)',
325325
shadowBlur: 15,
326326
},
327327
itemStyle: {
328328
borderColor: '#fff',
329329
borderWidth: 3,
330-
shadowColor: 'rgba(142, 48, 235, 0.5)',
330+
shadowColor: 'rgba(51, 156, 253, 0.5)',
331331
shadowBlur: 10,
332332
},
333333
},
@@ -373,10 +373,10 @@ export const LineRaceChart: React.FC = () => {
373373
});
374374

375375
const colorMap: Record<string, string> = {
376-
[t('categories.npubs')]: 'rgba(51, 156, 253, 0.9)',
376+
[t('categories.npubs')]: 'rgba(142, 48, 235, 0.9)',
377377
[t('categories.lightningABV')]: 'rgba(253, 156, 51, 0.9)',
378378
[t('categories.bolt')]: 'rgba(25, 230, 141, 0.9)',
379-
[t('categories.lightningAndDHT')]: 'rgba(142, 48, 235, 0.9)',
379+
[t('categories.lightningAndDHT')]: 'rgba(51, 156, 253, 0.9)',
380380
};
381381

382382
let content = `

0 commit comments

Comments
 (0)