aardappel / procrastitracker

a Windows time tracking application
http://strlen.com/procrastitracker/
500 stars 53 forks source link

Context menus and tag color customization #26

Open YellowAfterlife opened 7 years ago

YellowAfterlife commented 7 years ago

Tag colors

I've seen that tag colors are loaded from (and saved to) db, but there's no way to edit them without tinkering with the file.

Context menus

A subject of my brief confusion was absence of context menus on the tag list and treeview - separate buttons to change tag name and apply tag to tree item would have seemed like an interesting twist.

Draft

https://github.com/YellowAfterlife/procrastitracker/ image

Done:

Not done:

May or may not be made appropriately due to my limited experience with "raw" WinAPI.

If this looks fine, I can submit a PR. Otherwise would be glad to hear what to do with this.

aardappel commented 7 years ago

Thanks, that looks like some nice functionality! Go ahead with the PR, code looks good on first glance.

The two issues you mention would be nice to fix, but sadly I am no WIN32 expert either, so not sure how to fix them. For the color bitmaps, maybe we can restructure the code such that it creates these bitmaps upon opening the stats view? That is slightly better than having to restart? You could even force to close the stats view upon a color change, so the user will reopen it and get correct colors?

Also, you can maybe remove the "rename" button now, since that is redundant. Maybe keep "apply tag to node" since that still may have a function.