Theme 

New in version 3.5

Requires TYPO3 v13.4 or later, where the classic backend theme was introduced.

The Theme trigger is used to show the indicators depending on the backend theme (fresh, modern or classic) the backend user has selected.

This is mainly useful together with Color Scheme. The backend theme and the color scheme are independent user settings, and they do not treat each other equally: the classic theme renders the topbar with color-scheme: only dark, so its header stays dark no matter which color scheme is selected. An image based indicator registered only for the light color scheme would then appear on a dark header for those users.

ext_localconf.php
\KonradMichalik\Typo3EnvironmentIndicator\Configuration\Handler::addIndicator(
    triggers: [
        new \KonradMichalik\Typo3EnvironmentIndicator\Configuration\Trigger\ApplicationContext('Development*'),
        new \KonradMichalik\Typo3EnvironmentIndicator\Configuration\Trigger\ColorScheme('light', 'auto'),
        new \KonradMichalik\Typo3EnvironmentIndicator\Configuration\Trigger\Theme('classic')
    ],
    indicators: [
        new \KonradMichalik\Typo3EnvironmentIndicator\Configuration\Indicator\Backend\Logo([
            // light color scheme, but a dark header — so use the light-on-dark variant
            new \KonradMichalik\Typo3EnvironmentIndicator\Image\Modifier\TextModifier([
                'text' => 'DEV',
                'color' => '#ffffff',
            ]),
        ]),
    ]
);
Copied!

The configuration supports multiple themes as separate arguments.