GNOME Bugzilla – Bug 709617
No alternating colors in the ListView
Last modified: 2018-07-10 23:02:12 UTC
Created attachment 256698 [details] ListView with no alternating colors Lines in the ListView are supposed to be in alternating colors (white and light gray, for example), but this is not the case since we moved to GTK+ 3 (see screenshot). This happens both with the Adwaita theme (GNOME 3 default), and the Ambiance theme (default on Ubuntu).
The alternating colors depend upon the GTK3 theme AFAIK. May be you can include the following CSS with GtkCSSProvider if you want Banshee to override the theme, GtkTreeView row:nth-child(even) { background-color: shade(@theme_base_color, 0.9); } GtkTreeView row:nth-child(odd) { background-color: shade(@theme_base_color, 1.0); }
(In reply to comment #1) > The alternating colors depend upon the GTK3 theme AFAIK. May be you can include > the following CSS with GtkCSSProvider if you want Banshee to override the > theme, Thanks for the suggestion, but the ListView is a custom-drawn widget, it doesn't inherit from GtkTreeView. So I think we should try to do the right thing with GtkStyleContext so that our drawing uses the correct styles (colors, etc.).
(In reply to comment #2) > Thanks for the suggestion, but the ListView is a custom-drawn widget, it > doesn't inherit from GtkTreeView. Even if it doesn't inherit from GtkTreeView, given its similarities, I think we should try to mimic it as much as possible. For example, one thing to take in account, moving forward, with this bug, is that GtkTreeView's rules-hint has been deprecated: see bug 733312.
Hyena is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived: https://gitlab.gnome.org/Archive/hyena/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.