After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 737340 - theme_text_color is no longer in gtk 3.14
theme_text_color is no longer in gtk 3.14
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.12.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 737417 738371 738389 738390 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-09-25 09:11 UTC by kapouer
Modified: 2014-10-22 15:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evolution patch (8.07 KB, patch)
2014-09-25 11:40 UTC, kapouer
needs-work Details | Review
gtkhtml patch (1.04 KB, patch)
2014-09-25 11:40 UTC, kapouer
needs-work Details | Review
theme_text_color updated to theme_fg_color in Almanah (1.86 KB, patch)
2014-09-26 21:25 UTC, Álvaro Peña
committed Details | Review

Description kapouer 2014-09-25 09:11:04 UTC
Hi,

"theme_text_color", used to style several widgets, does no longer exist
in default gtk 3.14 theme.
Using Adwaita dark variant then results in unreadable dark-on-dark text in the messages pane e-table.

Regards,
Jérémy.
Comment 1 kapouer 2014-09-25 10:25:43 UTC
BTW, same problem in libgtkhtml-editor 4.0
Comment 2 kapouer 2014-09-25 10:30:18 UTC
And replacing "theme_text_color" by "theme_fg_color" in both fixes the messages list and the composer colors.
Comment 3 kapouer 2014-09-25 11:40:08 UTC
Created attachment 287062 [details] [review]
evolution patch
Comment 4 kapouer 2014-09-25 11:40:53 UTC
Created attachment 287063 [details] [review]
gtkhtml patch
Comment 5 kapouer 2014-09-25 11:44:38 UTC
it is also interesting to check how that change has impacted other software
http://codesearch.debian.net/search?q=theme_text_color

it seems it only affects evolution, gtkhtml, almanah and gnome-clocks.
Comment 6 Matthew Barnes 2014-09-25 12:49:32 UTC
These patches would require bumping the GTK+ dependency to 3.14 in configure.ac. Not worth it for this, imo. I suggest using GTK_CHECK_VERSION(3,14,0) macros to work around GTK-3.14's backward-compatibility break.
Comment 7 kapouer 2014-09-25 13:22:51 UTC
On the contrary, fg_color == text_color everywhere the comparison makes sense in the default gtk3 theme, so this change would loosen dependency instead of tightening it !

https://git.gnome.org/browse/gtk+/tree/gtk/resources/theme/gtk-default.css?h=gtk-3-12
https://git.gnome.org/browse/gtk+/tree/gtk/gtk-default.css?h=gtk-3-6
Comment 8 Álvaro Peña 2014-09-26 21:25:44 UTC
Created attachment 287211 [details] [review]
theme_text_color updated to theme_fg_color in Almanah

Thanks for pointing it. Looks good to me.
Comment 9 Álvaro Peña 2014-09-27 17:07:27 UTC
Review of attachment 287211 [details] [review]:

Commited!
Comment 10 Milan Crha 2014-10-09 08:52:52 UTC
*** Bug 737417 has been marked as a duplicate of this bug. ***
Comment 11 Milan Crha 2014-10-09 09:00:51 UTC
Thanks for a bug report and patches. The e_utils_get_theme_color/_color() functions allow defining fallback color names. I'll update your patches and commit them.
Comment 12 Michael Laß 2014-10-09 09:25:28 UTC
With the patch applied I still have got black text on dark background when composing a new message in evolution.
Colors in the message list are fixed though.
Comment 13 Milan Crha 2014-10-09 09:40:30 UTC
I made a little change in Jérémy's GtkHTML patch. Note the composer is affected only in evolution 3.12.x, not 3.13.4+.

Created commit 6af2ade in evo master (3.13.7+) [1]
Created commit 9c6219c in evo evolution-3-12 (3.12.7+)

Created commit 5cfa2c8 in gtkhtml master (4.9.1+) [2]
Created commit 19d6e22 in gtkthml gnome-3-12 (4.8.5+)

[1] https://git.gnome.org/browse/evolution/commit/?id=6af2ade
[2] https://git.gnome.org/browse/gtkhtml/commit?id=5cfa2c8
Comment 14 Milan Crha 2014-10-09 10:18:34 UTC
(In reply to comment #12)
> With the patch applied I still have got black text on dark background when
> composing a new message in evolution.
> Colors in the message list are fixed though.

I verified the committed fix in a gtkhtml-editor-test and the text color is white there, on a dark (almost black) background.
Comment 15 Milan Crha 2014-10-22 15:45:30 UTC
*** Bug 738390 has been marked as a duplicate of this bug. ***
Comment 16 Milan Crha 2014-10-22 15:49:07 UTC
*** Bug 738389 has been marked as a duplicate of this bug. ***
Comment 17 Milan Crha 2014-10-22 15:49:28 UTC
*** Bug 738371 has been marked as a duplicate of this bug. ***