This application supports overriding parts of the theme used by the web client. The purpose of this is to add to the theme and make small modifications, for instance to increase the visibility of UI elements related to security. This option was introduced in version 15.3.25 and can be enabled with the
configuration, as described in the install guide.
Customization is done by creating a CSS file which contains the needed style definitions, and configuring the path to this file in config.json :
The configured file is loaded in the web client during initial page load as a standard stylesheet and rules contained within are in effect from that point. It’s loaded as a static resource, so changes made to the file while Marvin Live is running will take immediate effect - upon refreshing the page in the browser, new rules should be available.
By inspecting the web page using a browser’s built-in developer tools, it’s easy to identify what selectors are best used. Most elements of the page have descriptive class names and helper classes are available.
A special class is added to
This class name is available where the domain label is displayed (in the lounge after login, next to the room name after joining one).
To customize the color of the “Marvin Live” title on the login page let’s identify the CSS selector to the title first:
The title is in an
<h1> tag and there already is a style definition with a parent
.logindetails class. Extending this with an extra color rule can be done like below: