Skip to content

Commit

Permalink
Increase contrast for matching research results by fading text for un…
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed Jul 27, 2020
1 parent c3b35d7 commit 1c5bdba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/flamechart-pan-zoom-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ export class FlamechartPanZoomView extends Component<FlamechartPanZoomViewProps,

// Note that this is specifying the position of the starting text
// baseline.
ctx.fillStyle = Colors.DARK_GRAY
if (this.props.searchIsActive && this.props.searchQuery.length > 0 && !match) {
ctx.fillStyle = Colors.LIGHT_GRAY
} else {
ctx.fillStyle = Colors.DARK_GRAY
}
ctx.fillText(
trimmedText.trimmedString,
physicalLabelBounds.left() + LABEL_PADDING_PX,
Expand Down

0 comments on commit 1c5bdba

Please sign in to comment.