mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
add possible dark mode fix for Outlook
This commit is contained in:
parent
fb727e75ec
commit
27ef931670
5
email.go
5
email.go
@ -169,6 +169,11 @@ func (emailer *Emailer) NewSMTP(server string, port int, username, password stri
|
|||||||
|
|
||||||
func (emailer *Emailer) construct(app *appContext, section, keyFragment string, data map[string]interface{}) (html, text string, err error) {
|
func (emailer *Emailer) construct(app *appContext, section, keyFragment string, data map[string]interface{}) (html, text string, err error) {
|
||||||
var tpl *template.Template
|
var tpl *template.Template
|
||||||
|
if substituteStrings == "" {
|
||||||
|
data["jellyfin"] = "Jellyfin"
|
||||||
|
} else {
|
||||||
|
data["jellyfin"] = substituteStrings
|
||||||
|
}
|
||||||
for _, key := range []string{"html", "text"} {
|
for _, key := range []string{"html", "text"} {
|
||||||
filesystem, fpath := app.GetPath(section, keyFragment+key)
|
filesystem, fpath := app.GetPath(section, keyFragment+key)
|
||||||
tpl, err = template.ParseFS(filesystem, fpath)
|
tpl, err = template.ParseFS(filesystem, fpath)
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
Color-scheme: dark;
|
Color-scheme: dark;
|
||||||
@ -22,12 +30,20 @@
|
|||||||
background: #242424 !important;
|
background: #242424 !important;
|
||||||
background-color: #242424 !important;
|
background-color: #242424 !important;
|
||||||
}
|
}
|
||||||
|
[data-ogsc] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
|
[data-ogsb] .body {
|
||||||
|
background: #242424 !important;
|
||||||
|
background-color: #242424 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</mj-style>
|
</mj-style>
|
||||||
<mj-attributes>
|
<mj-attributes>
|
||||||
<mj-class name="bg" background-color="#101010" />
|
<mj-class name="bg" background-color="#101010" />
|
||||||
<mj-class name="bg2" background-color="#242424" />
|
<mj-class name="bg2" background-color="#242424" />
|
||||||
<mj-class name="text" color="rgba(255,255,255,0.8)" />
|
<mj-class name="text" color="#cacaca" />
|
||||||
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
<mj-class name="bold" color="rgba(255,255,255,0.87)" />
|
||||||
<mj-class name="secondary" color="rgb(153,153,153)" />
|
<mj-class name="secondary" color="rgb(153,153,153)" />
|
||||||
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
<mj-class name="blue" background-color="rgb(0,164,220)" />
|
||||||
|
Loading…
Reference in New Issue
Block a user