@@ -180,7 +180,7 @@ export function renderProgress(
180180 const lineScale = d3
181181 . scaleOrdinal < string > ( )
182182 . domain ( lineKeys )
183- . range ( [ COLORS . gainText , COLORS . secondary ] ) ;
183+ . range ( [ COLORS . secondary , COLORS . primary ] ) ;
184184
185185 const x = d3 . scaleTime ( ) . range ( [ 0 , width ] ) . domain ( [ start , end ] ) ,
186186 y = d3
@@ -391,7 +391,7 @@ export function renderInvestmentTimeline(postings: Posting[], element: Element,
391391 if ( pmt > 0 ) {
392392 g . append ( "line" )
393393 . attr ( "fill" , "none" )
394- . attr ( "stroke" , COLORS . secondary )
394+ . attr ( "stroke" , COLORS . primary )
395395 . attr ( "x1" , 0 )
396396 . attr ( "x2" , width )
397397 . attr ( "y1" , y ( pmt ) )
@@ -406,7 +406,7 @@ export function renderInvestmentTimeline(postings: Posting[], element: Element,
406406 . attr ( "dy" , "0.3em" )
407407 . attr ( "x" , width )
408408 . attr ( "y" , y ( pmt ) )
409- . attr ( "fill" , COLORS . secondary )
409+ . attr ( "fill" , COLORS . primary )
410410 . text ( formatCurrencyCrude ( pmt ) ) ;
411411 }
412412
@@ -415,9 +415,9 @@ export function renderInvestmentTimeline(postings: Posting[], element: Element,
415415 . data ( points )
416416 . enter ( )
417417 . append ( "rect" )
418- . attr ( "stroke" , ( p ) => ( p . total <= 0 ? COLORS . lossText : COLORS . gainText ) )
419- . attr ( "fill" , ( p ) => ( p . total <= 0 ? COLORS . lossText : COLORS . gainText ) )
420- . attr ( "fill-opacity" , 0.6 )
418+ . attr ( "stroke" , ( p ) => ( p . total <= 0 ? COLORS . tertiary : COLORS . secondary ) )
419+ . attr ( "fill" , ( p ) => ( p . total <= 0 ? COLORS . tertiary : COLORS . secondary ) )
420+ . attr ( "fill-opacity" , 0.5 )
421421 . attr ( "data-tippy-content" , ( p ) => {
422422 const group = groupSumBy ( p . postings , ( p ) => p . account ) ;
423423 return tooltip (
0 commit comments