[GNC] Color of register placeholder text and hiding register header
Glenn Fowler
gfowler1 at outlook.com
Tue Sep 13 20:40:20 EDT 2022
Ok, I got it. To change the transaction entry placeholder text color:
/* transaction entry placeholder text color */
.gnc-class-lighter-grey-mix {
color: steelblue;
}
Thank you Adrien for your knowledge and input as well.
I also dug around in the wiki and found more info in the older gnucash 3
CSS which is still relevant.
On Tue, Sep 13, 2022 at 2:04 AM Adrien Monteleone <
adrien.monteleone at lusfiber.net> wrote:
> Maybe try:
>
> cursor entry {
> color: (whatever you like);
> }
>
> The comments at the top of the sample CSS file from the Wiki define
> 'cursor entry' as an entity/node that affects the active cell. That
> declaration should override everything else.
>
> Be sure to test with commenting out or removing your other rules
> affecting color for:
>
> gnc-id-cursor entry
> *.gnc-class-register-cursor
>
> -----
>
> Also note those color definitions I mentioned still have to be used in a
> rule. Simply defining them doesn't do anything by itself.
>
> For example, I have:
>
> @define-color register_secondary_bg_color #d9d9d9;
>
> as mentioned, and then later in my file I use it thusly:
>
> register-secondary {
> background-color: @register_secondary_bg_color;
> }
>
> My memory is fuzzy, but I think 'secondary' refers to the 'second line'
> (if made visible in the view menu) that shows the Notes field.
>
> 'Primary' is probably the main transaction line showing the date, NUM,
> Description, Amount, and Balance
>
> There is also a class '.register-split' to target the individual split
> lines. (all cells as far as I'm aware, so: Action, Memo, Account,
> Reconciled Flag, Amounts)
>
> -----
>
> You can also set:
>
> sheet {
> color: (whatever you like);
> }
>
> to affect the entire register, regardless of the transaction in focus.
> (which is targeted separately with the 'primary' & 'secondary' classes
> and the 'cursor entry' entity.
>
> ----
>
> Finally, I'm not sure what GTK allows for color specifications.
>
> I don't see any HSL rules in my file, even though I prefer to use that
> method, so it is possible it isn't allowed.
>
> I do have hex, named colors, and rgba. I also have a few 'color: mix
> (currentColor, white, 0.2);' and 'color: mix (currentColor, grey, 0.8);'
> which create tints and shades of whatever is the 'parent' or 'inherited'
> color for blending aesthetics.
>
> Regards,
> Adrien
>
> On 9/12/22 10:07 PM, Glenn Fowler wrote:
> > Thanks Adrien that is getting a little closer. Just leaving this here for
> > others.
> >
> > 1. I tried reordering but it had no effect.
> > 2. Defining a color for 'register_cursor_fg_color' and
> > 'register_cursor_color' didn't change anything.
> > 3. '@define-color register_cursor_bg_color' is the same as
> background-color
> > for '*.gnc-class-register-cursor' but it DOESN'T override the cell
> > highlighting in 'gnc-id-cursor entry'.
> >
> > So there must be a '@define-color xxxxxx' which is the same as color for
> > '*.gnc-class-register-cursor' (which is the placeholder text color). That
> > class still overrides.
> > Confusing. I sure couldn't make themes all day.
>
>
> _______________________________________________
> 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
> -----
> 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