aardappel / procrastitracker

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

Help Changing Tag Colors #51

Closed chaosdrop closed 5 years ago

chaosdrop commented 5 years ago

I can edit the colors in the program source, but they only take effect if I delete my database and start fresh which I don't want to do.

Therefore It seems tag colors are saved in the db file. I do not seem to have the technical know how to figure out how to edit the db file as is however. I can extract it with gzip and get a db file, but I can't figure out what the db file is. I've tired opening it with a number of different database browsers to no avail, and opening it in a text editor shows mostly only null characters and the tag names.

aardappel commented 5 years ago

The db file format is custom to Procrastitracker, it is documented here: https://github.com/aardappel/procrastitracker/blob/master/PT/file_format.txt

You could hack it ignoring the color stored in the DB by just commenting out this line: https://github.com/aardappel/procrastitracker/blob/master/src/nodedb.h#L68 It will now use the default color in the code instead.

chaosdrop commented 5 years ago

Awesome works great. Thank you!