Parsec customization๏
Parsec application can be partially customized to better fit your brand.
Customization is done by adding specific files in certain locations. If Parsec detects the presence of these files, it will use them instead of the regular ones.
Native app๏
The Parsec desktop application always looks for custom branding files at startup.
The files have to be placed inside a custom folder in the configuration directory.
The configuration directory will depend on the OS:
Windows:
%APPDATA%/parsec3/appLinux:
~/.config/parsec3/appMacOS:
~/Library/Application Support/parsec3/app
Web app๏
In web mode, the files have to be placed inside a custom folder in the serverโs static files directory.
A file should be reachable by doing /custom/<file> on the server.
Additionally, the server must enable custom branding by setting the content
attribute of the <meta name="custom-branding"> tag in the served index.html to:
<meta name="custom-branding" content="true,cacheBustingSuffix=<suffix>" />
Where <suffix> is an arbitrary string (typically a timestamp of the last
modification of the custom branding files) that is appended to the resource filenames
for cache busting (e.g. cacheBustingSuffix=-20240101 means logo-20240101.svg will be fetched).
This suffix must be updated every time the custom branding files are modified.
By default (i.e. without modification), the tag is set to false, which disables custom branding:
<meta name="custom-branding" content="false" />
Images๏
The following images can be customized at the moment:
logo.svg: the logo displayed in the bottom left corner of the home page.logo_icon.svg: the icon version of the logo, it will be used for your organizations.home_sidebar.png: the image displayed in the home page sidebar.
Specifically for the desktop app on Linux and Windows, you may also add:
app_icon.png: the icon displayed in the taskbar and window title.tray_icon.png: the icon displayed in the system tray or notification area.splash.png: the splash screen image. We recommend you match the size of the original splash screen, which is 624x424.
Note
The image type and file extension matter. If you use a different type, Parsec may not be able to load it.
We recommend that you check how your images are displayed in Parsec using different display resolutions. Some images may look great on your screen, but completely off on another. If you use the recommended sizes when mentioned, you shouldnโt have any problem.
Texts๏
You can also customize some specific texts in Parsec. To do so, simply:
Copy the following
.jsoncode excerpts tocustom_en-US.jsonandcustom_fr-FR.jsonfilesEdit the original text values (but not the keys)
Put both files in the same
customfolder as before
{
"HomePage": {
"topbar": {
"welcome": "Welcome to Parsec"
}
},
"MenuPage": {
"documentationLink": "https://docs.parsec.cloud/en/{version}",
"documentationGuideLink": "https://docs.parsec.cloud/en/{version}/userguide/{page}.html"
}
}
{
"HomePage": {
"topbar": {
"welcome": "Bienvenue sur Parsec"
}
},
"MenuPage": {
"documentationLink": "https://docs.parsec.cloud/fr/{version}",
"documentationGuideLink": "https://docs.parsec.cloud/fr/{version}/userguide/{page}.html"
}
}
Server emails & HTML pages๏
Parsec server emails and HTML pages (index, 404) are based on the Jinja template syntax.
You can customize them by providing a custom template directory when running the server with --template-dir or by setting the environment variable PARSEC_TEMPLATE_DIR.
The directory should contain the following files:
index.html: default landing page when you access the server.404.html: resource not found page.email/account_create.[html|txt].j2: HTML and TEXT templates for the email send to confirm Parsec account creation.email/account_delete.[html|txt].j2: HTML and TEXT email templates to confirm Parsec account deletion.email/account_recover.[html|txt].j2: HTML and TEXT email templates to confirm Parsec account recovery.email/invitation.[html|txt].j2: HTML and TEXT email templates to send invitation to join an organization.
Note
You can base your customization on the default serverโs templates found here.