[GNC] Change text color

Peter Jackson jackson at fastmail.net
Mon Aug 6 13:03:55 EDT 2018


This works for me on the Totals bar at the foot of a register:-

.GncRegisterPage  {
 background-color: aliceblue;
 color: green;
}

As for the screenshots, they are beyond my comprehension.
Thanks
pj



On 6 August 2018 at 17:25, Adrien Monteleone <adrien.monteleone at lusfiber.net
> wrote:

> By definition, a class is not particularly specific. It applies to
> multiple elements.
>
> You’d need to use a rule that targets the desired element(s) better.
>
> If you mean the bar that has “Present” “Future” “Cleared” “Reconciled” and
> “Projected Minimum” then I’ve attached a screenshot for that node tree.
>
> In my case, it’s at the top. (I don’t see a preference for reversing this)
>
> GtkBox.GncRegisterPage has two children, the first is a GtkBox that holds
> the totals bar (if on top) and the second is the GNCSplitReg which holds
> the actual register.
>
> Under the first GtkBox are the five child GtkBox nodes that hold each
> total. And each of those has two GtkLabel children, one for the title and
> one for the actual total.
>
> So you probably want to do something like:
>
> .GncRegisterPage > GtkBox label {}
>
> for the text of the bar and for the bar itself (colors perhaps):
>
> .GncRegisterPage > GtkBox {}
>
> Regards,
> Adrien
>
> > On Aug 6, 2018, at 11:02 AM, GT-I9070 H <gti9070h at gmail.com> wrote:
> >
> > Em seg, 6 de ago de 2018 às 10:43, Peter Jackson <jackson at fastmail.net>
> > escreveu:
> >
> >> Thanks, but is there not something missing here? to specify the bar.
> >> Regards
> >> pj
> >>
> >
> > Apparently yes, but for me it works, test and report your results.
> > Some selectors are like that, appear to be unspecific, see some for the
> > register, something seems to be missing.
> >
> >
> > Regards
> > GTI
> >
>
>
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


More information about the gnucash-user mailing list