We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Default colour in toolbar

asked 2019-06-10 16:33:24 +0200

pincopallino gravatar image

updated 2021-06-22 02:30:41 +0200

Alex Kemp gravatar image

Greetings, in all the programs of LO suite which I use (Writer, Cal, Impress) the colour that appears as default in the palette when I first open or create a document is #C9211E, which is a dark red. I would like to change this default choice to normal red, i.e. #FF3333. Is there a way to do this? Note that I am not trying to edit the default style of a document - I know how to do that - but to change the default colour that shows up in the "Font colour" button of the toolbar. Thank you in advance for any help you might provide. P.S. An image can be useful to better explain the problem:


(Edit: activated screenshot -AK)

edit retag flag offensive close merge delete


I have received by mail a comment saying "Please check https://ask.libreoffice.org/en/questi..." but it does not show up here. Anyway, this seems a way to create a custom palette, but I do not see how to select from that palette the colour that appears as default. It is simply an xml file defining the colour names. I may have misunderstood something, but the answer does not seem adapted to the question.

pincopallino gravatar imagepincopallino ( 2019-06-10 17:35:52 +0200 )edit

You got the notification, because I had added a comment, which had been related to custom palette, while I recognized afterwards, that you want to change the default color showing up in the icon. I found no way to accomplish this, so a single click on that default would changes the color of a selected text. I've deleted my comment to avoid further confusion but the email obviously was on the way already.

Opaque gravatar imageOpaque ( 2019-06-10 23:41:51 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2019-06-12 01:03:45 +0200

updated 2019-06-12 01:05:39 +0200

Hi, @pincopallino's, record this macro in My macros and customize a keyboard shortcut.

sub red
dim doc, disp as object
doc   = ThisComponent.CurrentController.Frame
disp = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Color" : args1(0).Value = 16711680
disp.executeDispatch(doc, ".uno:Color", "", 0, args1())
end sub

ATTENTION: If you would like to give more details to your question, use edit in question or add a comment below. Thank you.

If the answer met your need, please click on the ball Descrição da imagem to the left of the answer, to finish the question.

edit flag offensive delete link more


Need to run this macro after opening each document?

LeroyG gravatar imageLeroyG ( 2020-09-10 22:51:27 +0200 )edit

@LeroyG, Record the macro in My macros and Create Custom Toolbar by adding this Macro. It should be done in the three Calc, Impress and Writer applications.

Schiavinatto gravatar imageSchiavinatto ( 2020-09-11 04:15:34 +0200 )edit

answered 2019-06-10 19:14:21 +0200

ebot gravatar image

Can this help ?

edit flag offensive delete link more


It seems I fail to express myself. Perhaps an image will make clear what I mean?

pincopallino gravatar imagepincopallino ( 2019-06-10 19:25:21 +0200 )edit

Please upload your image to your question. Edit your question and then upload.

ebot gravatar imageebot ( 2019-06-11 05:52:21 +0200 )edit

Uploaded. Sorry for the late reaction, very busy at work today.

pincopallino gravatar imagepincopallino ( 2019-06-11 21:15:27 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-06-10 16:33:24 +0200

Seen: 344 times

Last updated: Jun 02