Re: [GNC] Formatting the Register header?

2020-01-26 Thread farleykj
I don't run Gnucash in full size window either, but the Inspector apparently
thought I should...or something I hit in my debugging play triggered the
full-screen in the horizontal direction.

The things I'd most like to change on the register header:
* Make the text-align on the columns "center".
* Change the font-style and font-size for the header text (Bold? Smaller?
More compact font?).
* Change the "Tot Deposit" and "Tot Withdrawal" to something shorter, like
"Deposit" and "Withdraw" The current strings are always chopped off because
the columns in the register aren't sized as if I'm making millions of dollar
transactions.

I'd also like to use some icons I makde for the GTK2 era for the buttons in
the toolbars. This would be an easy thing to do if I re-compiled the
application, since they're done with .png files in the source.

I've done a lot of digging down into the Gnucash.app directory. I'm from the
old-school Unix world and find it easier to maneuver down the directory
structures in a terminal rather than through Finder. Especially since Apple
feels the need to protect me from myself by hiding all those hidden files
(like .emacs, .login, etc.) from me. Argh.

I didn't know that the actual "executable" for the .app files is buried
inside them. Very useful bit of info, that.

Ken



-
Ken Farley
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
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.


Re: [GNC] Formatting the Register header?

2020-01-26 Thread Adrien Monteleone
I haven’t noticed any window size change with the inspector, but I don’t open 
GnuCash full-width or full-screen anyway. That is odd behavior, but maybe it is 
to accommodate the inspector window.

You can target nodes, but without an id or the element having a name, you can’t 
target specifically. Particularly, targeting within the register page is 
difficult without those elements being named.

Just out of curiosity, what are you trying to change about the header row?

You can run the inspector without the open command, but you have to use the 
full path to the executable like so:

`GTK_DEBUG=interactive /Applications/Gnucash.app/Contents/MacOS/Gnucash`

.app files are just ‘package bundles’ or special folders that MacOS normally 
hides the contents of. You can open them via Finder if you right-click and 
choose ’Show Package Contents’. From there you’ll be dropped into the 
`Contents` folder of that .app and you can navigate from there. (you also have 
full access via `ls` in Terminal.app)

As for building and maintenance, yes, you’d have to find where the GUI stuff is 
defined, then you’d have to adjust that every time the app updates.

Since this is an open source project, an option would be to contribute your UI 
changes back to the main code base. Then they could get integrated into the app 
for future releases and your styling rules would work from then on. (as well as 
for anyone else) See the wiki about development if you are interested in this 
route.

If you don’t want to get into coding it and dealing with GitHub, then file an 
RFE explaining what you’d like changed in the UI on Bugzilla. It might not get 
implemented for some time, but you never know. If the change is quick and easy 
and doesn’t cause other problems, someone might take it up.

Regards,
Adrien



> On Jan 26, 2020 w5d26, at 12:15 PM, farleykj  wrote:
> 
> Yeah, I thought about building the app myself, but it would be a huge
> undertaking to figure out where to set things up, i.e. where are the gui
> elements built and assembled? Plus, next time there's an update to a new
> version, I'd have to do all the hacking I did all over again in order to
> upgrade. Not something I'd look forward to.
> I got the GTK Inspector to work, in a sense, but it told me the things I
> pretty much already new, that the "name" of the items I wanted to style is
> "" (blank). As far as I know, you can't target a specific widget with CSS
> styling unless you know its name. Plus the inspector oddly affected the
> overall size of the application. When I exited and then restarted the app
> without the inspector, it had the full width of my monitor. Weird, probably
> my fault, but I don't know how.
> 
> A big tip for running the inspector on Mac OS: You've got to use "open"
> before the path to Gnucash. In other words, it's
> 
> *GTK_DEBUG=interactive open /Applications/Gnucash.app*
> 
> Thanks,
> Ken

___
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.


Re: [GNC] Formatting the Register header?

2020-01-26 Thread farleykj
Yeah, I thought about building the app myself, but it would be a huge
undertaking to figure out where to set things up, i.e. where are the gui
elements built and assembled? Plus, next time there's an update to a new
version, I'd have to do all the hacking I did all over again in order to
upgrade. Not something I'd look forward to.
I got the GTK Inspector to work, in a sense, but it told me the things I
pretty much already new, that the "name" of the items I wanted to style is
"" (blank). As far as I know, you can't target a specific widget with CSS
styling unless you know its name. Plus the inspector oddly affected the
overall size of the application. When I exited and then restarted the app
without the inspector, it had the full width of my monitor. Weird, probably
my fault, but I don't know how.

A big tip for running the inspector on Mac OS: You've got to use "open"
before the path to Gnucash. In other words, it's

*GTK_DEBUG=interactive open /Applications/Gnucash.app*

Thanks,
Ken



-
Ken Farley
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
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.


Re: [GNC] Formatting the Register header?

2020-01-26 Thread Adrien Monteleone
Thanks for sharing the file, and glad to see you were able to get themes 
working.

As noted previously in this thread, the way to find out what can be styled is 
to use the GTK Inspector. For MacOS you have to install GTK separately. I did 
so using Homebrew. You then have to start GnuCash with the Inspector via 
Terminal.app as noted in the GnuCash Wiki GTK page. There is a small learning 
curve, but once you figure out how to use it you can find out anything about a 
UI that you need for re-styling. This does not mean all elements can be styled. 
That is partly dependent on the code. But with the Inspector you can see how 
your styling change will look, or if it will even be effective at all.

For the case of the register header, if you want to do more than font or 
background color, you’d have to turn on the other styling hooks in the code and 
re-build the app yourself.

The same goes for icons.

Regards,
Adrien

> On Jan 25, 2020 w4d25, at 6:01 PM, farleykj  wrote:
> 
> I tested the theme I wanted to use by copying all the GTK3 related files from
> the theme into the Gnucash config directory (~\Appplication
> Support\Gnucash\config\gtk-3.0 on MacOS). It worked fine, but as expressed
> elsewhere, the Register Header formatting was immune to all but the
> background color and font specifications.
> 
> I also realized that if you want to know what the proper syntax is to change
> elements of the interface, the best thing for me was to look in a place
> where someone has collected all the possible settings: a complete theme. If
> you look in those files, you find a lot widget specifications, with settings
> for horizontally aligned and vertically aligned elements (Like notebook
> tabs) that might not be apparent to someone who hasn't done any GTK3
> programming. Someone like me.
> 
> So, knowing how disappointing it can be to look for answers and find a
> discussion that doesn't have any final results, here's my current gtk3.css
> file. It's pretty much what I want, but as with all such things, once you
> start tweeking things around, you are always looking to make a few more
> changes. For example, I have a bunch of icons I built for the GTK2 based
> Gnucash interface that I'd like to use again. I just don't know how to swap
> them in, or if that's even possible.
> gtk.css   
> 
> 
> 
> -
> Ken Farley

___
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.


Re: [GNC] Formatting the Register header?

2020-01-25 Thread farleykj
I tested the theme I wanted to use by copying all the GTK3 related files from
the theme into the Gnucash config directory (~\Appplication
Support\Gnucash\config\gtk-3.0 on MacOS). It worked fine, but as expressed
elsewhere, the Register Header formatting was immune to all but the
background color and font specifications.

I also realized that if you want to know what the proper syntax is to change
elements of the interface, the best thing for me was to look in a place
where someone has collected all the possible settings: a complete theme. If
you look in those files, you find a lot widget specifications, with settings
for horizontally aligned and vertically aligned elements (Like notebook
tabs) that might not be apparent to someone who hasn't done any GTK3
programming. Someone like me.

So, knowing how disappointing it can be to look for answers and find a
discussion that doesn't have any final results, here's my current gtk3.css
file. It's pretty much what I want, but as with all such things, once you
start tweeking things around, you are always looking to make a few more
changes. For example, I have a bunch of icons I built for the GTK2 based
Gnucash interface that I'd like to use again. I just don't know how to swap
them in, or if that's even possible.
gtk.css   



-
Ken Farley
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
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.


Re: [GNC] Formatting the Register header?

2020-01-15 Thread Adrien Monteleone
A transaction isn’t limited to only two splits, so there is no need to do ‘2 
things’ each time. You can just make one transaction. With auto-fill or 
Duplicate Transaction you’re just going to be adjusting dates, check #s and 
maybe amounts. (and any notes/memos like “February Donation” or whatever you 
might want to add for yourself that might need to change)

The accounts to use are a little messier.

Ideally, you want to model real-world transactions as much as possible. This 
would be a case where you alter that due to wanting to track the pledge.

Here’s where a bit of gymnastics with your Chart of Accounts comes in.

The pledge is not an Accrued Expense (a liability account) because you don’t 
yet owe it.

It is not a Pre-paid Expense (an asset account) because you haven’t paid it.

It isn’t yet a regular Expense, and certainly not Income.

Since it is at least a promise to pay, Liability is the best fit.

You can have sub-accounts of Liabilities:Accounts Payable, or you can create 
other independent liability accounts. (and even an ‘Other Accounts Payable’ if 
needed)

I would think the clearer option here would be to use another top-level account 
called Pledges. (of ’type’ liability)

This allows for sub-accounts for each specific ‘xyz' (if needed) and keeps them 
entirely separate from your real liabilities, including your real AP.

The disadvantage to not putting them under AP is they won’t roll up to show 
what you ’think you owe’ if that is important to you. You’d still have to do a 
little math on the side. (You could make it Liabilities:Pledges if you like, 
but I think it is cleaner to keep Pledges as top-level since it is a virtual 
account just for tracking purposes)

You’ll need some way to start the pledge. Sticking with the idea of keeping 
virtual stuff separate, I’d say create one more account, Equity:Pledges, so 
your first transaction will look like:

Dr. Equity:Pledges
Cr. Pledges:xyz

Now that you’re set up, the individual transactions would look like:

Dr. Expenses:Charity
Dr. Pledges:xyz
Cr. Assets:Checking
Cr. Equity:Pledges

This moves money from Checking to Expenses, and reduces the pledge as well as 
partially reverses the opening balance Equity:Pledges entry.

When you have finished your pledge for the year, Equity:Pledges will be zero, 
the liability Pledges/xyz account(s) will be zero, Expenses:Charity will 
reflect actual donations, and your Checking account will have been reduced 
accordingly.

If at the end of the year you didn’t meet your pledge, you can carry it over 
and pledge the difference next year, (or the whole amount in addition) or just 
make one adjusting entry to zero the remainder of the pledge in the liability 
and equity tracking accounts.

As for using Scheduled Transactions, I’d suggest setting it up to remind you 
and then you can fire/review/edit it when you want. Since it would remove money 
from Checking you probably don’t want it to auto-create unless you’ve also set 
up the pledge for auto-draft.

You could alternatively set a Scheduled Transaction for just the virtual 
tracking part to auto-fire that you can edit/delete later if needed, and handle 
the actual payments separately. (as a reminder Scheduled Transaction, or using 
auto-fill or Duplicate)

Regards,
Adrien


> On Jan 15, 2020 w3d15, at 10:53 AM, David Klassen  
> wrote:
> 
> Thank you for your response.  The mechanics was what I was trying to wrap
> my head around.  Because, yes, for tax purposes I want to show that I'm
> paying a charity expense.  But I also didn't want to have to do two things
> every time I wrote a check but I couldn't see any way around it.  I guess
> you're just confirming that thought.
> 
> As for the scheduled transaction methods, for "adjust date/amount"
> would that include deleting it entirely?  I guess, at some level I could
> just let it go and then delete the entry once it's fired if I really did
> miss that week.
> -- 
> David R. Klassen

___
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.


Re: [GNC] Formatting the Register header?

2020-01-15 Thread David Klassen
Thank you for your response.  The mechanics was what I was trying to wrap
my head around.  Because, yes, for tax purposes I want to show that I'm
paying a charity expense.  But I also didn't want to have to do two things
every time I wrote a check but I couldn't see any way around it.  I guess
you're just confirming that thought.

As for the scheduled transaction methods, for "adjust date/amount"
would that include deleting it entirely?  I guess, at some level I could
just let it go and then delete the entry once it's fired if I really did
miss that week.

Date: Mon, 13 Jan 2020 14:13:29 -0600
> From: Adrien Monteleone 
> To: Gnucash Users 
> Subject: Re: [GNC] How to set up a pledge payment
> Message-ID: <5c6e5ccd-c6bd-4841-b574-9118f4756...@lusfiber.net>
> Content-Type: text/plain;   charset=utf-8
>
> You can create it as a liability account but just know that it isn?t a
> legal one. You?ll also want to make sure in any official reports you
> create, that you do not include it since it is just a pledge.
>
> This will require extra splits in your transaction to reduce the amount
> promised. (as the real-world transaction will be between an asset and a
> gift expense) Since the simplest starting transaction would be between the
> liability and equity:opening balances, I?d just keep using those two each
> time reversed for the amount actually donated.
>
> As for the mechanics, you can do the transactions manually which will more
> than likely be autofilled or you can use the Duplicate Transaction feature
> as needed.
>
> You could also create a scheduled transaction, but set it to not create
> automatically, and check the box to review the transaction when you see it
> fires (or just use it as a reminder) You can then edit the result before it
> is committed to adjust date, amount, etc.
>
> Regards,
> Adrien
>
> > On Jan 13, 2020 w3d13, at 1:49 PM, David Klassen 
> wrote:
> >
> > I was wondering if there were a way in gnucash to set up a pledge
> payment.
> > That is, let's say I have pledged to pay a charity, let's say $1300 this
> > year, nominally $25/wk.  But it is *not* an automatic recurring payment
> > (sometimes I miss a week, sometimes I prepay an extra week, etc.).  So
> what
> > I need is a way to do the manual entry on the payments but to have some
> > kind of accounting telling me how much I have left to pay against my
> annual
> > pledge.
> >
> > My first thought was to create a liability account of the total amount
> and
> > pay that down, but it's not really the same as a loan... or is it in
> terms
> > of gnucash?
> >
> > Thank you for any suggestions you can give me.
> >
> > --
> > David R. Klassen
>

-- 
David R. Klassen
Media, PA  19063
___
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.


Re: [GNC] Formatting the Register header?

2020-01-14 Thread Adrien Monteleone
To answer the first part, no, you cannot style the header bar as far as I can 
tell.

You can affect register transactions with fonts and colors only as noted in the 
wiki and the sample css files. But I don’t see any id’s or classes exposed in 
the inspector to target the header by itself. (there is a header color you can 
set, but that is all)

Regards,
Adrien

> On Jan 13, 2020 w3d13, at 6:49 PM, farleykj  wrote:
> 
> Hello.
> I've been whacking away at a bit of GTK3 css formatting to make things a bit
> more stylish for me.
> Gnucash 3.8, MacOS 10.12.6
> The question I have is: Can I do any formatting or other modifications to
> the header bar entries in the register? I'd like to be able to do the
> following items:
> (1) Make some of the smaller things like the Date be centered as opposed to
> right justified.
> (2) Make the header text bold.
> (3) Get rid of the "Tot " prefix on Deposit and Withdrawal, mostly because
> what I actually get is "ot Withdrawal"
> 
> Are any of these wishes possible? I've been trying to dig through the source
> code for some insights, but it's not working so well.
> 
> P.S. I cannot, no matter where I put the settings.ini or theme files, get
> any downloaded themes to do anything whatsoever to the GUI appearance. Has
> anyone running on a Mac had any luck with this, and if so, where do you put
> your settings and stuff?
> 
> 
> 
> -
> Ken Farley

___
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.


Re: [GNC] Formatting the Register header?

2020-01-13 Thread David Cousens
Ken 

Not sure whether what you want to do is possible or not. Since you are on
V3.8 the GTKInspector
(https://wiki.gnome.org/action/show/Projects/GTK/Inspector?action=show=Projects%2FGTK%2B%2FInspector)
should work. That should let you know whether the features you want to alter
can de addressed with CSS. I think it is difficult to apply CSS rules to
individual specific items unless the item has an id that can be addressed
assigned in the source code. Applying it to classes might have considerable
unintended consequences.  You can apply css from the Inspector. I think it
only applies to the current instance but I'm not sure. Someone with a bit of
experience modifying CSS might be able to give you more help.

David



-
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
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.