Skip to content

Commit

Permalink
Use the default primary color instead of "randomly" the color of the …
Browse files Browse the repository at this point in the history
…user triggering the email

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jan 25, 2023
1 parent 20dc2f8 commit 822aebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/private/Mail/EMailTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public function addHeader() {
$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()]);
}

/**
Expand Down Expand Up @@ -555,7 +555,7 @@ public function addBodyButtonGroup(string $textLeft,
$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]);
Expand Down Expand Up @@ -586,7 +586,7 @@ public function addBodyButton(string $text, string $url, $plainText = '') {
$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]);

Expand Down

0 comments on commit 822aebe

Please sign in to comment.