Evolution black background in mail display

Bug #1272001 reported by Joseph Maillardet
66
This bug affects 15 people
Affects Status Importance Assigned to Milestone
evolution (Ubuntu)
Confirmed
High
Unassigned
ubuntu-themes (Ubuntu)
Fix Released
High
Unassigned

Bug Description

With different GT3 theme (tested : Adwaita, Zukitwo and Zukiwi), Evolution 3.10 display e-mail with a black background. I put a screenshot in attachment.

It's work but it's very ugly ! Please, give us a workaround.

--

I wanna attach this bug to the package "evolution" but the package search (Choose...) refuse to give me a link and display to my screen "Too many matches. Please try to narrow your search.". So I choose to target evolution-common.

Have a nice day.
Jo.
---
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
DistroRelease: Ubuntu 13.10
InstallationDate: Installed on 2012-05-11 (634 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
Package: evolution 3.10.3-0ubuntu3~saucy1 [origin: LP-PPA-gnome3-team-gnome3]
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.11.0-15.25-generic 3.11.10
Tags: third-party-packages saucy gnome3-ppa
Uname: Linux 3.11.0-15-generic x86_64
UpgradeStatus: Upgraded to saucy on 2013-11-08 (88 days ago)
UserGroups: adm audio cdrom dip fuse kvm libvirtd lpadmin plugdev sambashare sudo vboxusers vdr video weston-launch

Revision history for this message
Joseph Maillardet (jokx) wrote :
affects: gnome-shell (Ubuntu) → evolution (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in evolution (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Maillardet (jokx) wrote : CrashDB.txt

apport information

tags: added: apport-collected gnome3-ppa saucy third-party-packages
description: updated
Revision history for this message
Joseph Maillardet (jokx) wrote : Dependencies.txt

apport information

Revision history for this message
Joseph Maillardet (jokx) wrote : ProcEnviron.txt

apport information

Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :

Same here. But I'm using Ambiance the standard theme!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

affects: light-themes (Ubuntu) → ubuntu-themes (Ubuntu)
Changed in ubuntu-themes (Ubuntu):
status: New → Confirmed
Changed in ubuntu-themes (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in ubuntu-themes (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Released
Changed in evolution (Ubuntu):
importance: Undecided → High
status: Confirmed → Invalid
Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :

Still an issue on my AMD64 machine. Got the mentioned version installed. Just fixed for i386 or not fixed at all?

Revision history for this message
Shiba (shiba89) wrote :

Same problem on trusty amd64.

Revision history for this message
pato101 (pato101) wrote :

Fix at #8 only applies to Ubuntu themes Ambiance and Radiance.
I've taken a look at the diff, and successfully applied that to Adwaita in the following way:
mkdir ~/.themes/Adwaita
cd ~/.themes/Adwaita
cp -r /usr/share/themes/Adwaita/gtk-3.0 .
cd gtk-3.0
then, edit gtk.css and leave as this -of course scisors do not belong to the file- (note the first line is the one it already existed. Also note, the same block should be added to gtk-black.css if you use the black version for Evolution):

---8<-----8<--------
@import url("resource:///org/gnome/adwaita/gtk-main.css");

/*****************************
 * FIX EVOLUTION BLACK EMAIL *
 *****************************/
GtkWindow {
     color: @theme_fg_color;
     background-color: @theme_bg_color;
 }
GtkPaned {
     color: @theme_fg_color;

    /* Evolution sets the background color of its mail window to the background
     * color of entries, but cannot handle background images. Setting the
     * background color here doesn't effect real entries, because
     * 'background-image' has precedence.
     */
     background-color: @theme_bg_color;
 }
----->8------->8-----

Revision history for this message
Joseph Maillardet (jokx) wrote :

Thanks a lot for this tweaky fix. It's work with Zukitwo/Zukiwi too.

Revision history for this message
Simon Dop (dop-simon) wrote :

I made a patch from pato01's fix.

Revision history for this message
Eduardo Corral (eduardocorral) wrote :

pato01's fix also working with Bluebird

Revision history for this message
Haikal Pribadi (haikalpribadi) wrote :

Bug still exists when you open the email in it's own window. I.e. double click an email, a window popups containing just the email, and the problem persists.

Changed in evolution (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Haikal Pribadi (haikalpribadi) wrote :

Sorry, I forgot to note. The patch works, but ONLY for the preview email in the main evolution window.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "gtk-3.0-evolution-black-fix.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Haikal Pribadi (haikalpribadi) wrote :

I have removed the patch flag from the attachement. But I don't know how to negate the "Fix released" flag on top of the page.

Also, although the bug disappears when you update the theme "gtk.css" and reset the theme, the bug appears again when you close Evolution window and open it again.

Revision history for this message
Anthony Hendrickson (ahendrickson) wrote :

Manually patching this issue -- under the "Text Entry" Section, the background for the .entry class must also be added:

(extending pato101's suggested fix):
###########################################################

GtkWindow {
     color: @theme_fg_color;
     background-color: @theme_bg_color;
 }
GtkPaned {
     color: @theme_fg_color;
     background-color: @theme_bg_color;
 }
.entry {
    background-color: @theme_bg_color;
}

###########################################################

Freya (EOS) Users can use the attached .css file to replace their vanilla version stylesheet at /usr/share/themes/elementary/gtk-3.0/gtk-widgets.css

Cheers

Revision history for this message
Mario Sánchez Prada (mariospr) wrote :

I found this bug today in our downstream platform that is still using evolution 3.10.1, and thought it would be relevant to mention that this has been fixed usptream for bug https://bugzilla.gnome.org/show_bug.cgi?id=731872, and also that the patch from there applied cleanly on top of my 3.10.1, fixing the problem seamlessly for me too.

So, perhaps you could consider reverting the hack into the CSS files for those two themes (as it impacts GtkWindow and GtkPanel widgets in general) and just backporting that patch on evolution itself too.

My 2 cents

Revision history for this message
birkopf (birkopf) wrote :

On other distributions based on Debian above won't work (mainly because you will not have elementary). This below resolves problem.

Find in your home holder .config/gtk-3.0/gtk.css and add:

/* Black on white for HTML messages in Evolution Reader/Composer */
/* adjust colour to your liking */
EMailView WebKitWebView, EMailReader WebKitWebView {
    color: #000fff;
    background-color: #fff000;
}

/*****************************
 * FIX EVOLUTION BLACK EMAIL *
 *****************************/
GtkWindow {
     color: @theme_fg_color;
     background-color: @theme_bg_color;
 }
GtkPaned {
     color: @theme_fg_color;

    /* Evolution sets the background color of its mail window to the background
     * color of entries, but cannot handle background images. Setting the
     * background color here doesn't effect real entries, because
     * 'background-image' has precedence.
     */
     background-color: @theme_bg_color;
 }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.