Page 1 of 1

Highlight Text

PostPosted: Mon Jan 28, 2019 5:30 am
by glively
I have Highlighting text working just fine (see below). My question is, how do I provide a CUSTOM color for highlighting. The Highlight.class provides a small set of colors to choose from, and in my use-case, the "lightGray" color, E3E3E3 is much too dark. I'd like to provide something lighter, like EDEDED, or some other lighter gray. Is there a way to override or extend the colors available in Highlight.class?

Thank you in advance.

R run = ...;
RPr rpr = factory.createRPr();
final Highlight h = factory.createHighlight();
h.setVal("lightGray");
rpr.setHighlight(h);
run.setRPr(rpr);
para.getContent().add(run);

Re: Highlight Text

PostPosted: Mon Jan 28, 2019 6:53 am
by jason