Skip to content

Commit aca9e7f

Browse files
committed
fix: colors
1 parent 8ce3539 commit aca9e7f

File tree

2 files changed

+25
-32
lines changed

2 files changed

+25
-32
lines changed

src/components/MemoryViewer/MemoryViewer.scss

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,50 +32,41 @@
3232
height: 20px;
3333
margin-right: 4px;
3434

35-
&_type_ExternalConsumption {
36-
background-color: var(--g-color-base-info-medium);
37-
}
38-
3935
&_type_AllocatorCachesMemory {
40-
background-color: var(--g-color-base-warning-medium);
36+
background-color: var(--g-color-base-utility-medium-hover);
4137
}
4238

4339
&_type_SharedCacheConsumption {
44-
background-color: var(--g-color-base-utility-medium);
40+
background-color: var(--g-color-base-info-medium-hover);
4541
}
4642

4743
&_type_MemTableConsumption {
48-
background-color: var(--g-color-base-danger-medium);
44+
background-color: var(--g-color-base-warning-medium-hover);
4945
}
5046

5147
&_type_QueryExecutionConsumption {
52-
background-color: var(--g-color-base-misc-medium);
48+
background-color: var(--g-color-base-positive-medium-hover);
5349
}
5450
}
5551

5652
&__segment {
5753
position: absolute;
5854

5955
height: 100%;
60-
61-
&_type_ExternalConsumption {
62-
background-color: var(--g-color-base-info-medium);
63-
}
64-
6556
&_type_AllocatorCachesMemory {
66-
background-color: var(--g-color-base-warning-medium);
57+
background-color: var(--g-color-base-utility-medium-hover);
6758
}
6859

6960
&_type_SharedCacheConsumption {
70-
background-color: var(--g-color-base-utility-medium);
61+
background-color: var(--g-color-base-info-medium-hover);
7162
}
7263

7364
&_type_MemTableConsumption {
74-
background-color: var(--g-color-base-danger-medium);
65+
background-color: var(--g-color-base-warning-medium-hover);
7566
}
7667

7768
&_type_QueryExecutionConsumption {
78-
background-color: var(--g-color-base-misc-medium);
69+
background-color: var(--g-color-base-positive-medium-hover);
7970
}
8071
}
8172

src/components/MemoryViewer/utils.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,46 @@ interface MemorySegment {
1717

1818
export function getMemorySegments(stats: TMemoryStats): MemorySegment[] {
1919
const segments = [
20-
{
21-
label: i18n('text_external-consumption'),
22-
key: 'ExternalConsumption',
23-
value: getMaybeNumber(stats.ExternalConsumption),
24-
isInfo: true,
25-
},
26-
{
27-
label: i18n('text_allocator-caches'),
28-
key: 'AllocatorCachesMemory',
29-
value: getMaybeNumber(stats.AllocatorCachesMemory),
30-
},
3120
{
3221
label: i18n('text_shared-cache'),
3322
key: 'SharedCacheConsumption',
3423
value: getMaybeNumber(stats.SharedCacheConsumption),
3524
capacity: getMaybeNumber(stats.SharedCacheLimit),
3625
},
26+
{
27+
label: i18n('text_query-execution'),
28+
key: 'QueryExecutionConsumption',
29+
value: getMaybeNumber(stats.QueryExecutionConsumption),
30+
capacity: getMaybeNumber(stats.QueryExecutionLimit),
31+
},
3732
{
3833
label: i18n('text_memtable'),
3934
key: 'MemTableConsumption',
4035
value: getMaybeNumber(stats.MemTableConsumption),
4136
capacity: getMaybeNumber(stats.MemTableLimit),
4237
},
4338
{
44-
label: i18n('text_query-execution'),
45-
key: 'QueryExecutionConsumption',
46-
value: getMaybeNumber(stats.QueryExecutionConsumption),
47-
capacity: getMaybeNumber(stats.QueryExecutionLimit),
39+
label: i18n('text_allocator-caches'),
40+
key: 'AllocatorCachesMemory',
41+
value: getMaybeNumber(stats.AllocatorCachesMemory),
42+
},
43+
{
44+
label: i18n('text_external-consumption'),
45+
key: 'ExternalConsumption',
46+
value: getMaybeNumber(stats.ExternalConsumption),
47+
isInfo: true,
4848
},
4949
{
5050
label: i18n('text_soft-limit'),
5151
key: 'SoftLimit',
5252
value: getMaybeNumber(stats.SoftLimit),
53+
isInfo: true,
5354
},
5455
{
5556
label: i18n('text_hard-limit'),
5657
key: 'HardLimit',
5758
value: getMaybeNumber(stats.HardLimit),
59+
isInfo: true,
5860
},
5961
];
6062

0 commit comments

Comments
 (0)