[GNC] Change text color

Peter Jackson jackson at fastmail.net
Mon Aug 6 16:46:15 EDT 2018


Adrien, my mistake in copying, In the css the "." is present.
It does not work with the > GtkBox
Regards

pj




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

> You’re missing the ‘.’ class indicator at the beginning. It’s
>
> .GncRegisterPage > GtkBox {
>   color: green
> }
>
> Though I haven’t tested it, so it might still not work. (should though)
>
> If you left off the ‘.’ on the rule you have, it wouldn’t work either.
> (shouldn’t, that is)
>
> Regards,
> Adrien
>
> > On Aug 6, 2018, at 2:21 PM, Peter Jackson <jackson at fastmail.net> wrote:
> >
> > No Adrien,it affects only the Totals Bar.
> >
> > GncRegisterPage > GtkBox {
> > color: green;
> > }
> > did not work.
> >
> > pj
> >
> >
> > On 6 August 2018 at 20:10, Adrien Monteleone <
> adrien.monteleone at lusfiber.net> wrote:
> > Does that not affect the entire page?
> >
> > Perhaps the specific classes for primary, secondary et cetera are taking
> precedence.
> >
> > .GncRegisterPage > GtkBox {}
> >
> > would probably be safer if it works.
> >
> > Regards,
> > Adrien
> >
> > > On Aug 6, 2018, at 12:03 PM, Peter Jackson <jackson at fastmail.net>
> wrote:
> > >
> > > 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.
> >
> >
> > _______________________________________________
> > 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.
> >
>
>
> _______________________________________________
> 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