Create a Custom Theme
Please follow this steps to create a custom LibreOffice theme.
Understanding Directory Themes Hierarchy
The LO-TC use special directory hierarchy to make it easier for anyone who wants to create a custom theme and install it using LO-TC. Save and place each assets that will be created in the themes directory. LO-TC will automatically read the list of themes contained in the directory, we call them preinstalled themes.
please pay attention to the following directory hierarchy to help you find out where the assets are stored in the next steps.
[UPDATE] We have provided additional tools to help you create a full and fast theme folder. Just run the command:
then enter the name of the theme you want. Automatically the LO-TC will create a theme directory according to the name you entered under the themes
folder.
Preparing Image Assets
The pictures that must be prepared to make this theme include:
Screenshot (optional) Help other users recognize your theme by providing screenshots when your theme is successfully installed.
Create Configuration Files
After you have set up image assets, let's now prepare configuration files. Here are some configuration files that we will prepare:
Sofficerc
sofficerc
is a file that will set how the splash will be displayed. Here is the contents of the sofficerc file followed by simple explanations.to customize splash display you only need to edit parameters,
logo
,NativeProgress
,ProgressBarColor
,ProgressFrameColor
,ProgressPosition
, andProgressSize
Logo -- parameter to determine whether the splash is displayed or not
NativeProgress -- Displays progressbar native or custom
ProgressBarColor -- Specifies the color progressbar, this parameter uses RGB color values
ProgressFrameColor -- Specifies the color of the frame at progressbar, this parameter uses an RGB color value
ProgressPosition -- Determine location progressbar, this parameter uses X and Y coordinate values
ProgressSize -- Specifies the size of progressba, this parameter uses a value of width and height in pixels
persona_list.txt
persona_list.txt
is a configuration file to set how our theme will be displayed. The file contains the following information:Name of Theme Directory
Theme Name (also will appear as a tooltip)
Location of preview file
Location of header file
Location of the footer file
Backgrond and foreground colors
Here is an example of the format for writing the information above (for example, a theme named rainbow).
After all the assets and configuration files are ready, please run the LO-TC, if the steps are done correctly, your theme should appear as a list of ready-to-use themes.
Last updated
Was this helpful?