How can we re-define the default highlighting color?

The default is Yellow 3. Can I make the default another color?
Thanks!

LO allows to record in Basic, the instructions to select a text background color (character background pattern) and apply it to a previously selected text. You can store this macro in your standard library in your normal.odt and assign it a keystroke combination to invoke it.

I think the default highlighting color is HARD-CODED and therefore it is not possible to re-define its color. Here’s how I determined this:

  1. I noticed that if a color in the color palette is selected, it is surrounded by a double box, whereas if the color is not in the color palette, no color in the pallette has a double box. (Such great programming! Thank you, LibreOffice!) When opening a document and clicking on the highlight drop-down color, Yellow 3 has a double box around it, even when I renamed Yellow 3 to Yellow bright and moved it to a different position in the color palette (by modifying the colors in row 5 and row 6, making Yellow bright in row 6).

  2. I then modified one of the RGB values of Yellow 3 and clicked OK, so there was no color that matched the original values of Yellow 3.

  3. I then opened a new document. The default highlighting color is still a bright yellow, but when clicking the triangle drop-down, there is no color that is surrounded by the double box. So the default color must come from code that is not accessing the color palette.

The yellow of the highlighter responds to the color rgb, 255 - 242 - 0. If you change any of the rgb values, you will get a color that does not exist in the color palette and that LibreOffice therefore should not mark as selected, that it is what you refer to as not “surrounded by a double box”.