.
*/
declare(strict_types=1);
namespace Fisharebest\Webtrees\Module;
use Fisharebest\Webtrees\Auth;
use Fisharebest\Webtrees\Contracts\UserInterface;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Menu;
use Fisharebest\Webtrees\Session;
use Fisharebest\Webtrees\Site;
use Fisharebest\Webtrees\Tree;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use function assert;
use function asset;
use function is_string;
use function response;
use function uasort;
/**
* The colors theme.
*/
class ColorsTheme extends CloudsTheme
{
// If no valid palette has been selected, use this one.
private const DEFAULT_PALETTE = 'ash';
/**
* How should this module be identified in the control panel, etc.?
*
* @return string
*/
public function title(): string
{
/* I18N: Name of a theme. */
return I18N::translate('colors');
}
/**
* Generate a list of items for the user menu.
*
* @param Tree|null $tree
*
* @return array