Re: [GNC] Color of register placeholder text and hiding register header

2022-09-13 Thread Glenn Fowler
 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.montele...@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 xx' 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@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.
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-12 Thread Adrien Monteleone
Damn, I did have the leading period! Mailman seems to be stripping it 
out. Apologies.


So the class is properly ".register-secondary" for hopefully the final time.

Regards,
Adrien

On 9/13/22 1:08 AM, Adrien Monteleone wrote:

Sorry,

I swore I had a period in front of the class:

register-secondary

in my prior post. It is a class, not a node/entity.

Regards,
Adrien



___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-12 Thread Adrien Monteleone

Sorry,

I swore I had a period in front of the class:

register-secondary

in my prior post. It is a class, not a node/entity.

Regards,
Adrien

On 9/13/22 1:04 AM, Adrien Monteleone wrote:
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)



___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-12 Thread Adrien Monteleone

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 xx' 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@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-12 Thread Glenn Fowler
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 xx' 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.



On Mon, Sep 12, 2022 at 5:18 PM Adrien Monteleone <
adrien.montele...@lusfiber.net> wrote:

> On 9/11/22 1:16 PM, Glenn Fowler wrote:
> > I found this will change the input text color:
> >
> > gnc-id-cursor entry {
> >color: green;
> > }
> >
> > ...and it works but it gets overridden whenever you change
> > *.gnc-class-register-cursor color but not sure why.
>
> Not sure either, maybe reverse them in the file? (this is Cascading
> Style Sheets after all) It could also be a specificity problem.
>
> I have a rule for:
>
> cursor entry {}
>
> that might work if you target it with a color rule.
>
> But without playing around with it, I'm not sure why I have it. (sadly,
> I did not document it)
>
> GnuCash also has some defined color variables you can use. I have
> definitions for:
>
> @define-color register_secondary_bg_color #d9d9d9;
> @define-color register_cursor_bg_color #fefefe;
>
> I don't know if there is a 'register_cursor_fg_color' or just
> 'register_cursor_color' but one of those might be worth a shot.
>
> > As for the header I'm not sure how you would completely remove that. I'm
> > assuming that would be in the code and not just CSS.
>
> You probably can't (I didn't try) but I'll hazard something like:
>
> register-header {
>   display: none;
> }
>
> is the first thing to try.
>
> Of course, I'd fire up the Inspector and play with changes live to see
> what works, and then copy/paste those rules into my CSS file.
>
> Regards,
> Adrien
>
>
> ___
> gnucash-user mailing list
> gnucash-user@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.
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-12 Thread chandler via gnucash-user

Glenn Fowler wrote on 9/11/22 11:16:

I found this will change the input text color:

gnc-id-cursor entry {
   color: green;
}

...and it works but it gets overridden whenever you change 
*.gnc-class-register-cursor color but not sure why.


Cool!  Well if I leave the *.gnc-class-register-cursor color undefined then the 
placeholder text defaults to the gray/italic setting, which will work fine for 
my theme.  However it would probably still be good to know how to define both 
colors/styles in case someone else wants to do that...



As for the header I'm not sure how you would completely remove that. I'm 
assuming that would be in the code and not just CSS.


Yeah I figured as much, but thought I'd check anyway.


___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-12 Thread chandler via gnucash-user

Glenn Fowler wrote on 9/11/22 09:28:

/* register blank transaction placeholder text */

*.gnc-class-register-cursor {
   color: purple;
}


Unfortunately not quite.  This makes both the placeholder and entered text 
purple.  In the built-in color theme, the placeholder text is gray and italic, 
while entered text black and without effects.  Is there a file in the source 
code somewhere defining all the built-in color values?  The answer might be in 
there



/* register header */

*.gnc-class-register-header {
   background-color: #a8b8bf;
   color: black;
}

You could make the text and background in the header the same color to hide it.


The header would still be there though, covering up entries in the register.  
My goal is to get rid of this header altogether so I can see more of the 
register...


___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-12 Thread Adrien Monteleone

On 9/11/22 1:16 PM, Glenn Fowler wrote:

I found this will change the input text color:

gnc-id-cursor entry {
   color: green;
}

...and it works but it gets overridden whenever you change
*.gnc-class-register-cursor color but not sure why.


Not sure either, maybe reverse them in the file? (this is Cascading 
Style Sheets after all) It could also be a specificity problem.


I have a rule for:

cursor entry {}

that might work if you target it with a color rule.

But without playing around with it, I'm not sure why I have it. (sadly, 
I did not document it)


GnuCash also has some defined color variables you can use. I have 
definitions for:


@define-color register_secondary_bg_color #d9d9d9;
@define-color register_cursor_bg_color #fefefe;

I don't know if there is a 'register_cursor_fg_color' or just 
'register_cursor_color' but one of those might be worth a shot.



As for the header I'm not sure how you would completely remove that. I'm
assuming that would be in the code and not just CSS.


You probably can't (I didn't try) but I'll hazard something like:

register-header {
 display: none;
}

is the first thing to try.

Of course, I'd fire up the Inspector and play with changes live to see 
what works, and then copy/paste those rules into my CSS file.


Regards,
Adrien


___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-11 Thread Glenn Fowler
I found this will change the input text color:

gnc-id-cursor entry {
  color: green;
}

...and it works but it gets overridden whenever you change
*.gnc-class-register-cursor color but not sure why.

As for the header I'm not sure how you would completely remove that. I'm
assuming that would be in the code and not just CSS.

On Sun, Sep 11, 2022 at 1:08 PM chandler  wrote:

> Glenn Fowler wrote on 9/11/22 09:28:
> > /* register blank transaction placeholder text */
> >
> > *.gnc-class-register-cursor {
> >color: purple;
> > }
>
> Unfortunately not quite.  This makes both the placeholder and entered text
> purple.  In the built-in color theme, the placeholder text is gray and
> italic, while entered text black and without effects.  Is there a file in
> the source code somewhere defining all the built-in color values?  The
> answer might be in there
>
>
> > /* register header */
> >
> > *.gnc-class-register-header {
> >background-color: #a8b8bf;
> >color: black;
> > }
> >
> > You could make the text and background in the header the same color to
> hide it.
>
> The header would still be there though, covering up entries in the
> register.  My goal is to get rid of this header altogether so I can see
> more of the register...
>
>
>
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Color of register placeholder text and hiding register header

2022-09-11 Thread Glenn Fowler
/* register blank transaction placeholder text */

*.gnc-class-register-cursor {
  color: purple;
}


/* register header */

*.gnc-class-register-header {
  background-color: #a8b8bf;
  color: black;
}

You could make the text and background in the header the same color to hide
it.


On Sun, Sep 11, 2022 at 3:41 AM chandler via gnucash-user <
gnucash-user@gnucash.org> wrote:

> Hey all, I'm using Gnucash 4.11 on Linux and trying to get the coloring of
> the register to my liking.  I'm using ~/.config/gnucash/gtk-3.0.css for the
> settings.
>
> I haven't yet figured out how to change the color of the placeholder text
> that shows up when the cursor is not in that textbox.  That is the
> gray-colored italic "Num" "Description" "Notes" indicated by the red arrow
> in the attached Screenshot.
>
> I tried using the GTK+ Inspector to try and find this value, but I can't
> seem to find any of the entries in gtk-3.0.css in the GTK Inspector, any
> idea how to properly use it?
>
> Also I would like to disable/hide the top header in the register (outlined
> by the blue border in the Screenshot), is there anyway to do that?
>
> Thanks in advance!___
> gnucash-user mailing list
> gnucash-user@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.
>
___
gnucash-user mailing list
gnucash-user@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.