Create color palette - LibreOffice 6-1-3

From The Document Foundation Wiki
< DE
Jump to: navigation, search
Other languages:
Deutsch • ‎English

This page is in Work!

Foreword

This description refers to the version LibreOffice 6.1.3.

The video "LibreOffice Farbpaletten" (in German [DE]) links to this page here, which contains further information and details.

Basis is also the LibreOffice documentation.

Link to the Video

Link to the Video (in German [DE]): Eine Farbpalette erstellen in LibreOffice 6

colors and color palettes

standard color palette

Colors are set in color palettes in LibreOffice.

LibreOffice is by nature equipped with a so-called "standard" color palette.

You can also create your own (custom) color palettes.

When a color palette is selected, in addition to the colors of the color palette, you can also create Custom Colour(s) within a color palette.

Color palettes on board LibreOffice

Color palettes are stored as files and have the extension "soc".

Together for all users, these are stored in the "share" directory (Example Windows 10):

C:\Program Files\LibreOffice\share\palette

in the in the directory are following soc files:

  • chart-palettes.soc
  • freecolour-hlc.soc
  • html.soc
  • libreoffice
  • standard.soc
  • tonal.soc

When working within LibreOffice, the selection of color palettes also works

  • Custom
  • Document colors

as a selection with.

In previous versions of LO (for example, 5.2), there was a menu item Tools ▸ Options ▸ LibreOffice ▸ Colors that allowed you to manage color palettes (tables).

The concept has been changed so that in LibreOffice only the palette with the name "custom" can be changed (this is logically empty for a new system).

The other palettes are either installed with the system or added through extensions
(see: Getting Started Guide, Chapter 14, Customizing LibreOffice).

Color palettes (files) created by the user

Color palettes are stored as files and have the extension "soc".

User-created color palettes are stored in the so-called user profile of LibreOffice, on Windows in:
C:\Users\MY USERNAME\AppData\Roaming\LibreOffice\4\user\config
To see the directory, enter C:\% AppData% in Windows Explorer.

Thus, each user can create his own color tables on the PC.

Create a new color table

We can create a new color table by resaving the "standard" color palette under a different name.

In the directories above, we copy the file "standard.soc" in the directory "share" and paste in the directory "user".

We will give the file a new name.

Or we take one of the two sample files below and use them for our purposes.

 Note:  In other operating systems, such as Linux simply search for ".soc" on your hard drive.

The new color palette still has the same colors as the "standard" color palette.

To create your own colors in the new color palette, we need to change the color values and names in the file.

We can open and change the file with a simple text editor.

Under Windows you can take the editor.

We click left "Start" Windows Start.png on the left and scroll down the apps to the folder (Windows Accessories) Common - Ordner Windows-Zubehör.png.

The folder contains the editor Common - Ordner Windows-Zubehör - Editor.png.

We open the copied file in the editor.

It is in the file u.a. Processing commands (a few lines at the beginning and at the end of the file), these are by no means to change. And there are many lines in the file in the following pattern:

<draw:color draw:name="C-red 1" draw:color="#FF2424"/>
<draw:color draw:name="C-red 2" draw:color="#FC4242"/>
<draw:color draw:name="C-red 3" draw:color="#F58162"/>

Each line represents a color in the color palette. Only the lines in the rows, larger and bold are changed.

This is the name of the color and the hexadecimal code of the color.

Both must be together with each other.

If there are already colors with the same hex code but a different name, the name may not be displayed correctly.

Therefore, we should use unique name and hex code that does not yet exist in the system, e.g. "ax-red 1", and so on.

In the example of the three lines above, "C-" was prefixed.

If you are not sure which colors you want to use, check out "More Info:"

If the colors are fixed with name and hex code, the values in the open file can be overwritten.

Once all the desired values have been entered, the file should be saved at the latest.

The new color palette is only available for selection in LibreOffice when LibreOffice is restarted.

 Note:  Remember to back up your newly created soc files, i.e. create a backup at the latest now.

- Go to top -

Further Information

Examples of self-created soc files

When downloading the files have the extension odt.

 Note: If you have one of the files stored on your computer, you must change the file extension to soc.
Common - Dialogbox Download - Oeffnen von My palette 01.png

My_palette 01.soc

Contains predominantly very light pastel colors, which are well suited for backgrounds.

My_palette 02.soc

Contains tonal values adjusted for different colors.

My-Palette_01 My-Palette_02
Common - Farben - Farbpalette - My palette 01.png
Common - Farben - Farbpalette - My palette 02.png

Select color in the LibreOffice modules

The new color palette is of course available in all modules after restarting LibreOffice.

In the individual modules of LibreOffice, the new color palettes and colors can now be selected directly.

See also: Use Colors in LibreOffice 5.2

Selecting a color with displayed color values

Three color tables (examples) from the Internet with the corresponding RGB values are also a good aid here.

We find these under:

Branding_Color_Table (TDF)

Farbtabelle (Wikipedia)

Farbtabelle (genealogy.net)

Here we can select colours as desired or take over the corresponding RGB values.

The HSB colour space

HSV-Farbraum⁠Wikipedia logo v3.svg
Explains the HSV (HSB) color space (in German).

The RGB color space

RGB-Farbraum⁠Wikipedia logo v3.svg
Explains the RGB-Farbraum (in German).

The CMYK colour model

CMYK-Farbmodell⁠Wikipedia logo v3.svg
Explains the CMYK-Farbmodell (in German).

Documentation / Manuals

https://documentation.libreoffice.org/en/english-documentation/

- Go to top -