Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:taj:branches:GNOME:Next
evolution
fix_annoying_html_email_background_color_issue....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_annoying_html_email_background_color_issue.patch of Package evolution
This patches a really annoying bug in Evolution that displays html formatted emails without a background settings, and while using a dark layout in your desktop environment to display black text and a dark background. Basically this is the same as the unreleased patch https://gitlab.gnome.org/GNOME/evolution/-/commit/ac15857f14eecd83a3a1950588a2f1edb9cb70de.patch Untill that patch is released into a new version of evolution I would like to see it sooner in Tumbleweed. Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1835 Index: evolution-3.44.0/data/webkit/e-web-view.js =================================================================== --- evolution-3.44.0.orig/data/webkit/e-web-view.js +++ evolution-3.44.0/data/webkit/e-web-view.js @@ -695,8 +695,16 @@ Evo.initialize = function(elem) if (doc.documentElement.style.getPropertyValue("color") == "" || doc.documentElement.style.getPropertyValue("color") == "text") { - doc.documentElement.style.setProperty("color", "inherit"); - doc.documentElement.style.setProperty("background-color", "inherit"); + if (doc.defaultView && doc.defaultView.frameElement && !doc.defaultView.frameElement.hasAttribute("x-e-unset-colors") && + doc.defaultView.frameElement.ownerDocument && + doc.defaultView.frameElement.ownerDocument.defaultView && + doc.defaultView.frameElement.ownerDocument.defaultView.window) { + var style = doc.defaultView.frameElement.ownerDocument.defaultView.window.getComputedStyle(doc.defaultView.frameElement); + if (style) { + doc.documentElement.style.setProperty("color", style.color); + doc.documentElement.style.setProperty("background-color", style.backgroundColor); + } + } } elems = doc.querySelectorAll("input, textarea, select, button, label"); Index: evolution-3.44.0/src/em-format/e-mail-formatter-text-html.c =================================================================== --- evolution-3.44.0.orig/src/em-format/e-mail-formatter-text-html.c +++ evolution-3.44.0/src/em-format/e-mail-formatter-text-html.c @@ -369,7 +369,7 @@ emfe_text_html_format (EMailFormatterExt e_mail_part_get_id (part), e_mail_part_get_id (part), e_mail_part_get_frame_security_style (part), - g_settings_get_boolean (settings, "preview-unset-html-colors") ? "x-e-unset-colors=\"1\"" : "style=\"background-color: #ffffff;\""); + g_settings_get_boolean (settings, "preview-unset-html-colors") ? "x-e-unset-colors=\"1\"" : "style=\"background-color:white; color:black;\""); g_output_stream_write_all ( stream, str, strlen (str),
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor