nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.14k stars 3.94k forks source link

Use only Logo from Theming in emails without background color #31320

Open reos-rcrozier opened 2 years ago

reos-rcrozier commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently if you modify the theming in Nextcloud Settings->Theming calendar emails are modified also, however, the modification is very crude. For example in my theming I have a dark green background color, and the themed emal has a dark green blob at the top overlaid with black text containing the contents of the 'Name' field from the Theming setting. This is hard to read and looks very unprofessional.

Describe the solution you'd like

If the user has provided a logo in the theming section, display this logo at the top of calendar emails instead of the colored blob with overlaid text. If you don't have a logo at least choose a suitable text color like white if a dark background color has been selected.

Describe alternatives you've considered

No response

Additional context

No response

ChristophWurst commented 2 years ago

could you add screenshots?

reos-rcrozier commented 2 years ago

Actually, when I went to screenshot this, I realised I had made a mistake, the logo is actually displayed, it's overlaid on the colored blob (I hadn't allowed remote content to be displayed for the message). However, I would still prefer just the logo, and no background color, and the text displayed before the logo image is loaded to be either an appropriate color, or just plain black, no background color. Here's how it looks in our case after loading:

image

Before allowing the images to load:

image

tcitworld commented 2 years ago

Renamed and moved to server as there's nothing specific about calendar emails

solracsf commented 2 years ago

What about if you use a full-white logo in your Nextcloud? Without a background, logo won't display.

reos-rcrozier commented 2 years ago

@acsfer, I'm not sure exactly what you mean by a full-white logo? Or exactly what you mean by "Without a background, logo won't display".

I have tried a white logo foreground with transparent background (but the logo shown above has transparent background anyway). This doesn't make a difference to the issue that before logos are loaded the replacement text in the email is black, which doesn't look so good on a dark background.

Basically it would be nice to expose some aspects of email themes in the the Theming interface. For example the ability to change the header background color separately from the Nextcloud theme color, and the ability to change the alternate text color for the logo, and perhaps even choose a different logo file for the emails.

solracsf commented 2 years ago

Use this logo. https://logoseducation.group/wp-content/uploads/2020/10/White-logo-no-background.png

And imagine it on the mail body without a color background (white logo + white background = no logo display at all).

Basically it would be nice to expose some aspects of email themes in the the Theming interface. For example the ability to change the header background color separately from the Nextcloud theme color, and the ability to change the alternate text color for the logo, and perhaps even choose a different logo file for the emails.

This can be done by overriding the emails class (not by the WebUI at this time).

papahausa commented 2 weeks ago

hello. i have the same. where in mail templates i can remove this backgroung? Screenshot_5