|
|
|
|
@ -94,7 +94,11 @@ class Capabilities implements IPublicCapability {
|
|
|
|
|
*/
|
|
|
|
|
public function getCapabilities() {
|
|
|
|
|
$color = $this->theming->getDefaultColorPrimary();
|
|
|
|
|
$colorText = $this->theming->getDefaultTextColorPrimary();
|
|
|
|
|
// Same as in DefaultTheme
|
|
|
|
|
if ($color === BackgroundService::DEFAULT_COLOR) {
|
|
|
|
|
$color = BackgroundService::DEFAULT_ACCESSIBLE_COLOR;
|
|
|
|
|
}
|
|
|
|
|
$colorText = $this->util->invertTextColor($color) ? '#000000' : '#ffffff';
|
|
|
|
|
|
|
|
|
|
$backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime', '');
|
|
|
|
|
$backgroundPlain = $backgroundLogo === 'backgroundColor' || ($backgroundLogo === '' && $color !== '#0082c9');
|
|
|
|
|
@ -108,7 +112,10 @@ class Capabilities implements IPublicCapability {
|
|
|
|
|
* @see \OCA\Theming\Themes\CommonThemeTrait::generateUserBackgroundVariables()
|
|
|
|
|
*/
|
|
|
|
|
$color = $this->theming->getColorPrimary();
|
|
|
|
|
$colorText = $this->theming->getTextColorPrimary();
|
|
|
|
|
if ($color === BackgroundService::DEFAULT_COLOR) {
|
|
|
|
|
$color = BackgroundService::DEFAULT_ACCESSIBLE_COLOR;
|
|
|
|
|
}
|
|
|
|
|
$colorText = $this->util->invertTextColor($color) ? '#000000' : '#ffffff';
|
|
|
|
|
|
|
|
|
|
$backgroundImage = $this->config->getUserValue($user->getUID(), Application::APP_ID, 'background_image', BackgroundService::BACKGROUND_DEFAULT);
|
|
|
|
|
if ($backgroundImage === BackgroundService::BACKGROUND_CUSTOM) {
|
|
|
|
|
|