mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Use the default primary color instead of "randomly" the color of the user triggering the email
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a192641808
commit
79b8c68592
1 changed files with 3 additions and 3 deletions
|
|
@ -380,7 +380,7 @@ EOF;
|
|||
$this->headerAdded = true;
|
||||
|
||||
$logoUrl = $this->urlGenerator->getAbsoluteURL($this->themingDefaults->getLogo(false));
|
||||
$this->htmlBody .= vsprintf($this->header, [$this->themingDefaults->getColorPrimary(), $logoUrl, $this->themingDefaults->getName()]);
|
||||
$this->htmlBody .= vsprintf($this->header, [$this->themingDefaults->getDefaultColorPrimary(), $logoUrl, $this->themingDefaults->getName()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -555,7 +555,7 @@ EOF;
|
|||
$this->ensureBodyIsOpened();
|
||||
$this->ensureBodyListClosed();
|
||||
|
||||
$color = $this->themingDefaults->getColorPrimary();
|
||||
$color = $this->themingDefaults->getDefaultColorPrimary();
|
||||
$textColor = $this->themingDefaults->getTextColorPrimary();
|
||||
|
||||
$this->htmlBody .= vsprintf($this->buttonGroup, [$color, $color, $urlLeft, $color, $textColor, $textColor, $textLeft, $urlRight, $textRight]);
|
||||
|
|
@ -586,7 +586,7 @@ EOF;
|
|||
$text = htmlspecialchars($text);
|
||||
}
|
||||
|
||||
$color = $this->themingDefaults->getColorPrimary();
|
||||
$color = $this->themingDefaults->getDefaultColorPrimary();
|
||||
$textColor = $this->themingDefaults->getTextColorPrimary();
|
||||
$this->htmlBody .= vsprintf($this->button, [$color, $color, $url, $color, $textColor, $textColor, $text]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue