Skip to content

Commit

Permalink
Increase contrast for search results
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed Nov 12, 2020
1 parent 2a19c36 commit f3e2119
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/flamechart-pan-zoom-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class FlamechartPanZoomView extends Component<FlamechartPanZoomViewProps,
matchedFrameBatch.fill(ctx, theme.searchMatchPrimaryColor)
matchedTextHighlightBatch.fill(ctx, theme.searchMatchSecondaryColor)
fadedLabelBatch.fill(ctx, theme.fgSecondaryColor)
labelBatch.fill(ctx, theme.fgPrimaryColor)
labelBatch.fill(ctx, this.props.searchResults != null ? theme.searchMatchTextColor : theme.fgPrimaryColor)
indirectlySelectedOutlineBatch.stroke(ctx, theme.selectionSecondaryColor, frameOutlineWidth)
directlySelectedOutlineBatch.stroke(ctx, theme.selectionPrimaryColor, frameOutlineWidth)

Expand Down
5 changes: 3 additions & 2 deletions src/views/themes/dark-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ enum Colors {
BLUE = '#00769B',
PALE_BLUE = '#004E75',
GREEN = '#0F8A42',
LIGHT_BROWN = '#8A6D07',
BROWN = '#624406',
LIGHT_BROWN = '#D6AE24',
BROWN = '#A66F1C',
}

const C_0 = 0.2
Expand Down Expand Up @@ -60,6 +60,7 @@ export const darkTheme: Theme = {

weightColor: Colors.GREEN,

searchMatchTextColor: Colors.DARKER_GRAY,
searchMatchPrimaryColor: Colors.BROWN,
searchMatchSecondaryColor: Colors.LIGHT_BROWN,

Expand Down
1 change: 1 addition & 0 deletions src/views/themes/light-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const lightTheme: Theme = {

weightColor: Colors.GREEN,

searchMatchTextColor: Colors.BLACK,
searchMatchPrimaryColor: Colors.ORANGE,
searchMatchSecondaryColor: Colors.YELLOW,

Expand Down
1 change: 1 addition & 0 deletions src/views/themes/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface Theme {

weightColor: string

searchMatchTextColor: string
searchMatchPrimaryColor: string
searchMatchSecondaryColor: string

Expand Down

0 comments on commit f3e2119

Please sign in to comment.