Ask Your Question
0

How can we re-define the default highlighting color?

asked 2018-07-03 18:56:18 +0100

Grateful gravatar image

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

edit retag flag offensive close merge delete

Comments

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.

Denis J Navas gravatar imageDenis J Navas ( 2018-07-30 11:51:10 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-07-27 20:47:47 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve 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.

edit flag offensive delete link more

Comments

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".

Denis J Navas gravatar imageDenis J Navas ( 2018-07-30 11:14:17 +0100 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2018-07-03 18:56:18 +0100

Seen: 141 times

Last updated: Jul 27 '18