.. include:: /Includes.rst.txt .. _feature-1791870931: =============================================== Feature: Company branding and the login company =============================================== Description =========== Administrators choose how their company looks through the API: one of 13 themes or their own brand colour (and optionally their own neutral colour), and a font (``updateCompanyBranding``). A colour that would make a text or a focus ring unreadable in the light or the dark scheme is refused, naming the pair of colours and proposing the nearest readable shade. Every employee reads the catalogue and the company's branding (``listThemes``, ``getCompanyBranding``). Administrators add or remove an image for the login page (``updateCompanyLoginImage``, ``deleteCompanyLoginImage``); it is stored without its metadata. The login page, the page to reset a password and the page to set the first password show the logo and name of the login company and its image instead of the adsum mark. With only one company, that is the company. Logos, favicons and login images have addresses that carry their version and are served by the application from the file storage, to everyone for the login company and to its employees for any other company (``getLoginBranding``, ``getBrandingAsset``). Changes are recorded in the change history. Impact ====== Logo addresses change to ``/api/v1/branding/assets//logo/``. Logos and login images are kept in ``app.file_storage_directory``, which defaults to the photo directory where logos were kept before; include it in backups. An installation that keeps files in another store replaces the service of the ``FileStorage`` port. The core now requires the PHP extension gd. .. index:: API, Frontend, Configuration, package:adsum-core