[GNC] CSS selectors for alternating rows and individual columns on the Account page?

Evelyn Yamanaka evelyn.yamanaka at gmail.com
Tue Feb 23 22:18:00 EST 2021


Hi all,

I'm using GNUCash 4.4 on Windows 10, and I'm trying to customize the
appearance of the Account page using the CSS file:

%APPDATA%\GnuCash\gtk-3.0.css

I can't figure out how to modify alternating rows (background color)
or individual columns (e.g. the "Account Name" column) on the Account
page because I don't know the CSS selector for those items.

I've used the GTK Inspector to identify other elements. But I can't
figure out the CSS path for these two items. I've tried the following,
in case the tree in the Account page behaved like an HTML table, but
neither worked:

#gnc-id-account-tree tr:nth-child(even) {
    background-color: #888;
}
#gnc-id-account-tree td:nth-child(1) {
    background-color: #888;
}

More info, including a screenshot for reference, can be found here:
https://superuser.com/questions/1627977/what-are-the-css-selectors-for-alternating-rows-and-specific-columns-in-gnucash

Would appreciate any help figuring out which CSS selectors to use, or
just letting me know if it's impossible to do. Thanks.


More information about the gnucash-user mailing list