1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

add possible dark mode fix for Outlook

This commit is contained in:
Harvey Tindall 2021-02-18 17:47:15 +00:00
parent fb727e75ec
commit 27ef931670
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
9 changed files with 141 additions and 8 deletions

View File

@ -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)

View File

@ -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)" />

View File

@ -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)" />

View File

@ -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)" />

View File

@ -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)" />

View File

@ -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)" />

View File

@ -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)" />

View File

@ -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)" />

View File

@ -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)" />