themingDefaults = $themingDefaults; $this->util = $util; $this->themesService = $themesService; } public function jsonSerialize(): array { return [ 'name' => $this->themingDefaults->getName(), 'slogan' => $this->themingDefaults->getSlogan(), 'url' => $this->themingDefaults->getBaseUrl(), 'imprintUrl' => $this->themingDefaults->getImprintUrl(), 'privacyUrl' => $this->themingDefaults->getPrivacyUrl(), 'primaryColor' => $this->themingDefaults->getColorPrimary(), 'backgroundColor' => $this->themingDefaults->getColorBackground(), 'defaultPrimaryColor' => $this->themingDefaults->getDefaultColorPrimary(), 'defaultBackgroundColor' => $this->themingDefaults->getDefaultColorBackground(), 'inverted' => $this->util->invertTextColor($this->themingDefaults->getColorPrimary()), 'cacheBuster' => $this->util->getCacheBuster(), 'enabledThemes' => $this->themesService->getEnabledThemes(), // deprecated use primaryColor 'color' => $this->themingDefaults->getColorPrimary(), '' => 'color is deprecated since Nextcloud 29, use primaryColor instead' ]; } }