add possible dark mode fix for Outlook

pull/61/head
Harvey Tindall 4 years ago
parent fb727e75ec
commit 27ef931670
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -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…
Cancel
Save