[GNC] Preferences for latest version

Jill Terry jill at babrees.co.uk
Sat Oct 20 13:39:49 EDT 2018


Thank you so much for your help Adrien.  Very much appreciated!

It does seem rather strange to step backward in display when upgrading a 
program!  I would stick to the older version (with it's zebra striping 
on the account tree LOL!) but for some strange reason the search 
function just suddenly stopped working! Progress isn't always a good 
thing :(

Thanks again

Jill


On 20/10/2018 18:32, Adrien Monteleone wrote:
> Jill,
>
> Unfortunately, this does not appear to be possible at the present time. You can only target the entire background, not individual lines for zebra striping.
>
> I did find a possibility of having grid lines, but this will need to be done via code by the developers.
>
> I’d suggest filing a bug report as an RFE (Request for Enhancement). The gridlines should be easy enough for them to implement (as an option, similar to how they implement it for the registers) but the zebra striping might be more difficult.
>
> You do have another option in the meantime:
>
> Set account colors for some/all/blocks of accounts.
>
> If you select an account in the tree and click the ‘Edit’ icon, you’ll see in the top section of your options, the ability to set an account color. Click the color bar on the left to bring up a standard gtk color palette to choose from, or use the custom option to specify your own.
>
> Then in Preferences > Accounts, use the Account Color options to either show as background, on tabs, or both as desired. (note, while the tab option updates as you select or unselect it with the preferences window open, the background option seems buggy and the change is only visible once you exit the preferences window.)
>
> This way, you can either color individual accounts, or maybe at least color all assets the same, all expenses the same et cetera for a visual break-up of the page.
>
> Regards,
> Adrien
>
>> On Oct 20, 2018, at 2:46 AM, Jill Terry <jill at babrees.co.uk> wrote:
>>
>> Hi Adrien
>>
>> First of all sorry for delay in replying and thank you very much for this.
>>
>> Could you tell me how to have even and odd rule for the account page?   Prior to upgrading, it used to display white but with every other line in grey, which is much easier to read.
>>
>> Cheers
>> Jill
>>
>> On 19/10/2018 19:48, Adrien Monteleone wrote:
>>> Jill,
>>>
>>> Try this:
>>>
>>> Close GnuCash.
>>>
>>> Using a text editor (such as ’TextEdit.app’) create a file named gtk-3.0.css and place it in /yourusername/Library/Application Support/Gnucash
>>>
>>> have it contain the following three CSS declarations:
>>>
>>> * {
>>>    font-size: 12px;
>>>    font-family: Helvetica, sans-serif;
>>> }
>>>
>>> #account_tree, .GncAccountPage {
>>>    background-color: lightgrey;
>>> }
>>>
>>> treeview button {
>>>    background-color: lightgrey;
>>>    color: black;
>>> }
>>>
>>> Save the file as ‘Plain Text’. (Format > Make Plain Text)
>>>
>>> Start GnuCash to see your changes.
>>>
>>> ----------
>>> Here’s what this code does:
>>>
>>> 	* {
>>>    	  font-size: 12px;
>>>    	  font-family: Helvetica, sans-serif;
>>> 	}
>>>
>>>
>>> “font-size: 12px;” sets the font size for all (*) elements in the windows for the entire application. Set to the size you find appropriate. 12px (pixels) is a readably small size on most displays.
>>>
>>> “font-family: Helvetica, sans-serif;” sets the font family to be ‘Helvetica’ or the closest generic system sans-serif font available if Helvetica is not on your system. You can use any font here you like. I just included Helvetica as an example. The default (‘San Francisco’ on a Mac) is pretty good, so you don’t need to even include this line if you like it as is, just use the font-size rule.
>>>
>>> ----------
>>>
>>> 	#account_tree, .GncAccountPage {
>>>   	  background-color: lightgrey;
>>> 	}
>>>
>>>
>>> “#account_tree” targets the main part of the Account page window, “.GncAccountPage” targets the small background behind the Totals bar which appears to be part of the page. You can put them together as I have done here in a list to apply the same rule to both, or write separate declarations for each with their own rules if you want the colors to be different.
>>>
>>> You can also set specified font-sizes and font-families here as well if you want them different than the rest of the window. Just add those rules into those declarations. I’ve included a background color rule here because that is what you asked for, with the ‘lightgrey’ example. Depending on what you are looking for, or what color you choose, you may need to also set a foreground (text) color to balance properly. See the next declaration for an example.
>>>
>>> ----------
>>>
>>> 	treeview button {
>>> 	  background-color: lightgrey;
>>> 	  color: black;
>>> 	}
>>>
>>>
>>> “treeview button” targets the header bar at the top of the Account table. Again, you might need to include a foreground color rule here as this particular background color makes the header labels harder to read. (simply “color”)
>>>
>>> For colors you can specify a ‘named websafe color’ (do a search on that term for possible color names) or you can use RGB integer or hex values if you want to specify a non-named color. (you don’t have to use names either, you can use the actual color value for ‘lightgrey’ if you want)
>>>
>>> For example, if you wanted to match the background color of the tabs area, you’d use:
>>>
>>> 	background-color: rgb(207,207,205);
>>>
>>> or
>>>
>>> 	background-color: #cfcfcd;
>>>
>>> If you wanted to match the background area of the icon toolbar, you’d use rgb(232,232,231) or #e8e8e7.
>>>
>>> If you want to know the color of a particular screen element, use the “Digital Color Meter.app". It will give you the color value of the item you point to as three separate integers for Red, Green & Blue (RGB) in the interval 0-255. If you want the hex value instead, you can then use a site like rgbtohex.net to convert it. It is important to always enter the RGB values in that R,G,B order to get the correct color.
>>>
>>> ----------
>>> You can make changes to the CSS file while GnuCash is open, but you’ll have to restart (after saving the CSS file) to see them take effect.
>>>
>>> Let me know if you have any questions.
>>>
>>> Regards,
>>> Adrien
>>>
>>>
>>>> On Oct 17, 2018, at 8:53 AM, Jill Terry <jill at babrees.co.uk> wrote:
>>>>
>>>> Thanks folks.
>>>>
>>>> The location of the css file given in the wiki is given for a mac, I cannot locate a folder for Gnucash under Application Support.  Besides which I have no idea how to find the correct .class to adjust.
>>>>
>>>> I love GnuCash and so appreciate the program. But (yep always a but LOL!)  I hate with a vengeance the way there are no simple links to things.  I have no idea how to get to the online version of these emails to search older posts!
>>>>
>>>> I am old and tired (and grumpy LOL!) and really struggle to learn new things. Why oh why did they remove the alternate line shading and change the font????
>>>>
>>>> Cheers
>>>> (a very tired) Jill
>>>>
>>>>
>>>>
>>>> On 17/10/2018 12:45, Adrien Monteleone wrote:
>>>>> Jill,
>>>>>
>>>>> Look at the wiki FAQ, you’ll see links to pages about GTK3 styling. There are some basics there, otherwise, a few months back, myself and a few others spent some time experimenting with various settings here on the list, so check the archives. I believe the thread title had something to do with font size. If you do a restricted search of the list use ‘css’ as a search term.
>>>>>
>>>>> If you need to fine tune things like spacings, padding and such, you will greatly benefit by using the gtk-inspector. I don’t think it works on Windows though, Mac and Linux only. (you won’t need to install it separately)
>>>>>
>>>>> I’m heading out of town for a few days, but if you are still stuck after trying the above, report back and I’ll help where I can. Others on the list can certainly assist as well.
>>>>>
>>>>> Regards,
>>>>> Adrien
>>>>>
>>>>>> On Oct 17, 2018, at 5:19 AM, Jill Terry <jill at babrees.co.uk> wrote:
>>>>>>
>>>>>> Hi All.
>>>>>>
>>>>>> I'm on the mac version and I have just updated to v.3.3.
>>>>>>
>>>>>> I absolutely hate the fact that the opening window, showing all accounts, is now a bland, bright, white.  I also dislike the change in the font and size.   With these updates it hurts my eyes.
>>>>>>
>>>>>> The accounts are fine, still the same yellow/green (although I dislike the font now used).
>>>>>>
>>>>>> But I cannot see anywhere where you can change the view of the Accounts tab, nor font style/size.
>>>>>>
>>>>>> I don't know what other changes were made in the upgrade, but if I can't change how the accounts tab looks then I shall have to revert back to older version.
>>>>>>
>>>>>> Jill
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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.
>>> _______________________________________________
>>> 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