[GNC] Coloring the Action field

John Ralls jralls at ceridwen.us
Fri Dec 17 16:32:49 EST 2021


It's not supported and it wouldn't be easy to implement in a general way. Gtk nodes aren't HTML or XML elements with attributes, so Gtk CSS styling can't query attributes as a selector. 

Regards,
John Ralls

> On Dec 16, 2021, at 11:11 PM, AC <gnucash at acarver.net> wrote:
> 
> Yeah, I know there's a good likelihood that it isn't supported but I figured with all the CSS support maybe I'd get lucky and there was support for attribute selection like there is in regular browser CSS. But then that's a GTK ask and not necessarily a GnuCash ask.
> 
> The general thought if such an attribute selector were supported would then be something like:
> 
> .gnc-register#registerid .gnc-action-field[value="Payment"] { background-color: rgba(255,0,0,0.5); }
> 
> 
> Again, this is more likely a GTK ask since I'm sure it would take actual code in the notebook handler routines to have per register action colors.
> 
> On 2021-12-16 22:27, David Carlson wrote:
>> So far no developer has replied to this thread, so we do not know if there
>> are any 'hooks' under the hood to hang this request on, or if it would
>> require substantial development work to implement.
>> One path forward would be to create an Enhancement Request Bug Report in
>> the GnuCash Bugzilla https://wiki.gnucash.org/wiki/Bugzilla.
>> On Fri, Dec 17, 2021 at 12:09 AM AC <gnucash at acarver.net> wrote:
>>> No, I don't like the loan wizard.  I already tried it and I still need
>>> to flag the transactions to find them later in the register so I can fix
>>> the splits correctly.  The wizard doesn't save me any time.
>>> 
>>>> 
>>>> Why not point to the loan wizard and how it can setup an automated
>>>> transaction schedule?  Sure, it is off a few pennies every so often but
>>>> if a person is looking at the loan details a their bank (or get a
>>>> monthly statement) it is easy to adjust the existing transactions.
>>>> 
>>>> Once you understand the resulting schedule formula, you can modify for
>>>> extra monthly payments and won't need the wizard to setup the next loan.
>>>> 
>>> 
>>> _______________________________________________
>>> 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