That was exactly it, though I was not able to find this using the inspector. Everything was coming up as a GtkBox.

The font size was already small on my system, the tabs themselves were three times the height of the font.

Unfortunately the scroll wheel doesn't work on the tabs any longer to quickly move through the list but at least I can see more tabs.

Before making this CSS change I could only see nine tabs. Now I can see 24 (I have a total of 37 open). So the padding was huge, I just couldn't find the padding anywhere in the inspector though that could mean I simply overlooked it without realizing it.

But I now have a nice dark themed application. I'm also pleasantly surprised at the speed of loading and saving the file. I recall mention of this being fixed and I can certainly appreciate it. It took about two minutes for 2.6.3 (my previous version) to load my file and 4.8 takes about ten seconds.

On 2021-12-10 19:42, D. via gnucash-user wrote:
A while back, someone (named Adrien!) shared tips on formatting the tabs at 
https://lists.gnucash.org/pipermail/gnucash-user/2020-January/088583.html


-------- Original Message --------
From: Adrien Monteleone <adrien.montele...@lusfiber.net>
Sent: Fri Dec 10 21:45:51 EST 2021
To: gnucash-u...@lists.gnucash.org
Subject: Re: [GNC] Changing colors and layout on 4.8

Note too that there are some 'defined' register colors. The example CSS
files linked from the wiki should at least illustrate these. (though I
don't think there is much 'documentation' on them, their names should be
self-explanatory)

I'll dig into my own CSS file to see if I adjusted that tab-height
property. Or barring that, fire up the inspector myself. But you should
be able to see a property that affects it.

Caveat: respect the Cascade! thus, if a child of the tab, say a 'tab
label' has a 'font-size' specified in *any* independent measurement (not
in reference or dependent on the tab dimensions itself) that child
element will then 're-size' the tab if the tab is set to contain *all*
of its content. (I'm not describing that precisely correct for all
cases, but I think I'm conveying the right idea) This is a 'thing' in
Web CSS, but for some elements of GTK CSS, it is baked in. That is,
those elements always adjust to fit content of their children and you
don't have an easy means to change their behavior via CSS.

So you can set a tab height to 1px, but if your child tab-label is 12px,
(plus or not — margin/padding), then your resulting tab will be that
much larger regardless of the 'official' tab-height property.

I suspect that is the problem.

First, find a nice font-size for the entire UI. Stick with it. (there is
good reason for this)

Then adjust *padding* on the 'tab' or *margin and/or padding* on the
'label' of the tab as needed.

That's what I've done so far, and it works well enough for me, though
I'm not trying to shrink my tabs into near oblivion.

Regards,
Adrien

On 12/10/21 5:48 PM, AC wrote:
The syntax is roughly the same which is fine but what I'm finding harder
is identifying the appropriate selectors based on the output of the
inspector is harder.

I've gotten most of everything I wanted fixed except for the height of
the register tabs. The inspector so far isn't showing me anything
helpful to tweak that would let me reduce their height.

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

Reply via email to