Follow

Setting the markup highlighting colours

Pugpig highlights your markup with search results and annotations. You can set the colours used.

Search

The search control exposes two highlight colours. highlightColor sets the colour for search results. activeHighlightColor sets the colour for the currently selected search result.

The best place to set the colours is in your DocumentViewController's viewDidLoad:

iOS:

- (void)viewDidLoad {
  ...
  [searchControl setHighlightColor:[UIColor redColor]];
  [searchControl setActiveHighlightColor:[UIColor yellowColor]];
  ...
}

Android:

 public void viewDidLoad() {
  ...
  searchControl.setHighlightColor(Color.RED);
  searchControl.setActiveHighlightColor(Color.BLUE);
  ...
}

Annotations

This is an iOS-only feature. If you have annotations enabled, you can use the AnnotationManager's annotationColor property. You'll usually do this once at startup. You can only set one global annotation Color.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk