Skip to content

Commit 2054c65

Browse files
authored
fix: improve color contrast between spectra and red peaks (#261)
1 parent 7fccba4 commit 2054c65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__tests__/units/helpers/format.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ describe('Test format helper', () => {
339339
describe('Test get multi curves colors', () => {
340340
it('Get the first color', () => {
341341
const index = 7
342-
const expectedColor = '#d35400'
342+
const expectedColor = '#2980b9'
343343
const color = Format.mutiEntitiesColors(index)
344344
expect(color).toEqual(expectedColor)
345345
})

src/helpers/format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ const formatPeaksByPrediction = (
448448

449449
const compareColors = (idx) => ['#ABB2B9', '#EDBB99', '#ABEBC6', '#D2B4DE', '#F9E79F'][idx % 5];
450450

451-
const mutiEntitiesColors = (idx) => ['#d35400', '#2980b9', '#8e44ad', '#2c3e50', '#6D214F', '#182C61', '#BDC581'][idx % 7];
451+
const mutiEntitiesColors = (idx) => ['#2980b9', '#e4b423', '#8e44ad', '#2c3e50', '#6D214F', '#182C61', '#BDC581'][idx % 7];
452452

453453
const strNumberFixedDecimal = (number, decimal = -1) => {
454454
if (decimal <= 0) {

0 commit comments

Comments
 (0)