Alternate row colors not working

Bug #1420859 reported by Miguel Beltran
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN

Bug Description

I activate and deactivate the alternate row colors and it doesn't work.

summary: - alternate row colors not working
+ Alternate row colors not working
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

It is, but GTK relies on themes, and the defaut windows one for GTK3 do not provide this as it try to imitate windows native interface and alternate rows is not used in windows app.

Previously for version <= 4.6.3 I was using a tweaked by myself theme to do this, but it's no more that simple to do in gtk3.
That is for the explanation, no ready solution yet, except using an alternative GTK3 theme.

Revision history for this message
Kenny3794 (kenny3794) wrote :

Per Gnome 3.14, this function is deprecated and no longer guaranteed to work. If you want alternating colors, you will need to find a new theme.

Source: https://developer.gnome.org/gtk3/stable/GtkTreeView.html#gtk-tree-view-set-rules-hint

I have the same observation in Gnome 3.14.2 in ArchLinux.

Revision history for this message
Miguel Beltran (miguel-beltran) wrote :

How can I change the theme?

Revision history for this message
Kenny3794 (kenny3794) wrote :

You can download themes at deviantart.com for GTK3. You would then use the Gnome Tweak Tool or a command line gsettings call to change the theme.

Beyond that, though, I think Maxime needs to reconsider the method he has of creating alternating rows, since that functionality is now deprecated. Perhaps this functionality just goes away? Or there's some CSS code methods for alternate row theme that may or may not work.

Revision history for this message
Andre Soares (soares-andre) wrote :

Hi. My name is Abdre (Brazil) and I have the same issue here. I'm using Fedora 21 and homebank 5. Previous version is working fine.

Changed in homebank:
status: New → Opinion
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I found a way to tweak the gtk-win32 theme again, so I did it.

Changed in homebank:
assignee: nobody → Maxime Doyen (mdoyen)
importance: Undecided → Low
milestone: none → 5.0.1
status: Opinion → Fix Committed
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

SO that's for the windows user of course.
Linux user might find a them that enable this: Adwaita do not (that's the defaut gnome/gtk theme)

zukitwo, plane, and windows 8 are okay

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I suggest you pick some theme into gnome-look.org

Generally just add a part of xss do the trick:

.view row:nth-child(odd),
.view row:nth-child(odd):hover {
  background-color: shade (@theme_base_color, 0.98);
}

Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
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.