[GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

Geert Janssens geert.gnucash at kobaltwit.be
Thu Aug 9 08:37:57 EDT 2018

Op donderdag 9 augustus 2018 13:22:09 CEST schreef Adrien Monteleone:
> > On Aug 8, 2018, at 10:02 PM, Christopher Lam <christopher.lck at gmail.com>
> > wrote:
> > 
> > Hi devs,
> > 
> > 
> > Account Balances are either displayed indented (same as account-depth,
> > with a few exceptions) or single-column. I'd rather not do indenting in
> > CSS because I can't figure out CSS. The CSS style would be “:n columns"
> > or something and I have not idea how this works.
> CSS3 does columns, but I don’t see anything yet looking over the Gtk+ CSS
> docs to indicate they’ve implemented it.
Heh, it shows you have been digging deep into the Gtk+ CSS :) I think you even 
understand it better than me by now.
For reports on the other hand it's not important what Gtk+ implements as the 
reports are html rendered via webkit (essentially a built-in webbrowser) so 
the W3C css rules matter here..

> My guess would be to set classes on the accounts for the column position and
> set left margin or padding on the classes accordingly. (I think Geert
> mentioned something along these lines in an earlier reply)
That's indeed what I had in mind, but I haven't tried myself either. So I 
can't tell how feasible it is anyway. I don't see an issue for accounts as 
they are left-justified. I don't know for the right-justified amounts though. 
People with more html/css experience may want to share their views here.


More information about the gnucash-devel mailing list