[GNC] Change text color

Adrien Monteleone adrien.monteleone at lusfiber.net
Thu Jul 26 13:59:30 EDT 2018


The inspector is for *nix and is part of GTK. I looked around to see if it will run on windows (since GTK itself can run on windows) but have come up dry so far. My own dabbling with the inspector is on the backburner, but I’ll post my findings here and on the wiki when I get to it.

As for the color, you need a color name, a reference to a system color, or a color code. (which may be hex or rgb, rgba) Color names are either the HTML ‘websafe’ color names, or pre-defined gtk-color names.

See this page here and scroll down to the color section for exact specifications: https://developer.gnome.org/gtk3/stable/chap-css-overview.html

So if you wanted text in steel blue, you could use either:

gtk-font-color=SteelBlue

or

gtk-font-color=#4682b4

assuming ‘gtk-font-color’ is the correct property.

Regards,
Adrien



> On Jul 26, 2018, at 10:53 AM, GT-I9070 H <gti9070h at gmail.com> wrote:
> 
> Hi  Adrien,
> Thanks for the reply.
> 
> I forgot to mention that I'm on Windows 10.
> I had already looked here https://wiki.gnucash.org/wiki/GTK3 and found nothing to change the text color of the accounts page.
> 
> The phrase "To enable it run in a terminal :" here  https://wiki.gnome.org/Projects/GTK%2B/Inspector does not clarify which terminal and suggests that Inspector does not run on Windows.
> Windows can't interpret these commands.
> 
> This
> 
> [Settings]
> gtk-font-name=Arial 14
> 
> in my settings.ini file changes the font size.
> 
> I guess I need something like:
> 
> [Settings]
> gtk-font-name=Arial 14
> gtk-font-color=????
> 
> to change the text color.
> I've made some unsuccessful attempts.
> 
> I'll keep trying.
> 
> Regards
> GTI
> 
> 
> 
> Em qui, 26 de jul de 2018 às 04:04, Adrien Monteleone <adrien.monteleone at lusfiber.net> escreveu:
> Look into using the GTK Inspector.
> 
> See this: https://wiki.gnucash.org/wiki/GTK3
> 
> and this: https://wiki.gnome.org/Projects/GTK%2B/Inspector
> 
> From that tool you should be able to find the selector(s) for text on that tab.
> 
> When you find out, please report back to help others looking to do the same. (myself included)
> 
> Regards,
> Adrien
> 
> > On Jul 21, 2018, at 10:07 PM, GT-I9070 H <gti9070h at gmail.com> wrote:
> > 
> > I use GnuCash v3.2 with Adwaita dark theme.
> > 
> > The white color of the text on the accounts page is conflicting with the
> > colors of my accounts so I have to disable Preferences>Accounts>Show the
> > color of the account as the background color.
> > 
> > I did some research and got a nice effect on the records pages and tabs,
> > but I did not get anything that worked on the accounts page.
> > 
> > Is there anyway I can change the text color of the Accounts page?
> > 
> > Thank you in advance
> > 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.




More information about the gnucash-user mailing list