High-Contrast desktop theme and coloring inside of TortoiseGit applications

502 views
Skip to first unread message

Martin Lemburg

unread,
Jul 8, 2015, 6:21:57 AM7/8/15
to tortoise...@googlegroups.com


Due to massive problems with my eyes (eye disabilities), I needed to switch to the high-contrast desktop theme. Since then, I have massive problems with TortoiseGit.

Some problems I solve by changing color settings or using e.g. WinMerge with customized colors.

But TortoiseGitBlame is not usable:


The color of normal text is black, while the background color is black due to the high-contrast desktop theme, too.


How to change without the need for a bug fix release the used colors inside the blame application?


Kind regards,


Martin


Yue Lin Ho

unread,
Jul 8, 2015, 6:46:08 AM7/8/15
to tortoise...@googlegroups.com


Martin Lemburg於 2015年7月8日星期三 UTC+8下午6時21分57秒寫道:
Is your OS XP?

Yue Lin Ho
 

Martin Lemburg

unread,
Jul 8, 2015, 9:32:34 AM7/8/15
to tortoise...@googlegroups.com
No - WIndows 7 Prof. 64bit. 

Yue Lin Ho

unread,
Jul 17, 2015, 1:22:00 AM7/17/15
to tortoise...@googlegroups.com


Martin Lemburg於 2015年7月8日星期三 UTC+8下午9時32分34秒寫道:

Am Mittwoch, 8. Juli 2015 12:46:08 UTC+2 schrieb Yue Lin Ho:


Martin Lemburg於 2015年7月8日星期三 UTC+8下午6時21分57秒寫道:


Due to massive problems with my eyes (eye disabilities), I needed to switch to the high-contrast desktop theme. Since then, I have massive problems with TortoiseGit.

Some problems I solve by changing color settings or using e.g. WinMerge with customized colors.

But TortoiseGitBlame is not usable:


The color of normal text is black, while the background color is black due to the high-contrast desktop theme, too.


How to change without the need for a bug fix release the used colors inside the blame application?



I reviewed some source code of TortoiseGitBlame and tested some.
Basically, the answer is NO for your situation.
("Basically" means I don't review fully.)

As far as I know, there are only 2 colors in settings can be set, but none of them is what you want.
Another thing is TortoiseGitBlame will detect the file extension automatically for highlight word.
Ex: the color of comment for cpp file is green.
Those colors are fixed, can not be set, unfortunately. (AFAIK)

Beside, I make a fast fix. :)
see attached files.
the first one is normal showing.
the other one is selecting all text by using Ctrl + A.

I want to help you, I can
1. give you my fast fix TortoiseGitBlame.exe.
2. give you my fast fix code and tell you how to make your own TortoiseGitBlame.
3. try to submit "disable auto highlight" commits to TortoiseGit, 
   if it is accepted, you will need to wait the next release or preview release.

You want?

Have a nice day~ ^_^

Yue Lin Ho




 

fast_fix.png
fast_fix_sel_all.png

Martin Lemburg

unread,
Jul 17, 2015, 5:30:35 AM7/17/15
to tortoise...@googlegroups.com
Dear Yue Lin Ho,

Thanks for your support!

The quik fix by a provided TortoiseGitBlame.exe would be nice!

1n our application a syntax highlighting control uses inverted colors in high-contrast mode. I'll try to find some time to take a look at the blame sources to commit later a fix.

Since I'm two weeks on tour, there is no need to hurry!

Thanks in advance!

Best regards,

Martin
___
Martin Lemburg / Berlin, Germany

martin....@gmx.net
http://about.me/Martin0815


Von: Yue Lin Ho <yueli...@gmail.com>
Gesendet: Fri Jul 17 07:22:00 MESZ 2015
An: tortoise...@googlegroups.com
Betreff: Re: High-Contrast desktop theme and coloring inside of TortoiseGit applications
--
You received this message because you are subscribed to the Google Groups "tortoisegit-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tortoisegit-us...@googlegroups.com.
To post to this group, send email to tortoise...@googlegroups.com.
Visit this group at http://groups.google.com/group/tortoisegit-users.
For more options, visit https://groups.google.com/d/optout.

Yue Lin Ho

unread,
Jul 17, 2015, 6:34:04 AM7/17/15
to tortoise...@googlegroups.com
Hi Martin:

you may fetch the changes of branch TGBlame_color in my repo, then review the changes.



Yue Lin Ho

Yue Lin Ho

unread,
Jul 20, 2015, 4:40:14 AM7/20/15
to tortoise...@googlegroups.com
Hi Martin:

I guess Sven, the TortoiseGit project leader, noticed your wish.
Most important of all, he implemented the feature which support high contrast theme few hours ago.
See attached file.
(He spent his sleeping time! Nice Sven. Thank Sven and wish Sven has a good sleep.)

So, now, just wait for the next preview release or release, and wish you happy. :)

Yue Lin Ho


new.png

Yue Lin Ho

unread,
Jul 20, 2015, 4:44:14 AM7/20/15
to tortoise...@googlegroups.com
another picture with the menu item "Enable syntax highlighting"
syntax_highlight.png

Yue Lin Ho

unread,
Aug 2, 2015, 11:35:04 PM8/2/15
to tortoisegit-users
Hi Martin:

1.8.15.0 is released.

So, I deleted my quick fix.
If you are still interested in the code,
see the commits 
from b88ee11c9a3e4c9c88284d4ab2173d7f97e1d1dd 
to 13b36fdc3cc6df700a1a178c243179d77bdb9d00
in TortoiseGit Repository.

^_^

Yue Lin

Martin Lemburg

unread,
Aug 3, 2015, 2:28:24 AM8/3/15
to tortoise...@googlegroups.com
Hi Yue Lin,

Thanks for the good message!

Since i'm still on vacation, I wasn't able to review your changes but I'll do back at home!

Best regards,

Martin Lemburg
Berlin / Deutschland

martin....@gmx.net
http://about.me/Martin0815

Martin Lemburg

unread,
Aug 10, 2015, 6:20:13 AM8/10/15
to tortoise...@googlegroups.com
Hi Yue Lin,
 
even still being too busy to take a look at the internals of TortoiseGit/Blame ... the installer of the new version made me smile and frown ...
 
 
I was not able to read a bit of the final screen ... not a good sign in times of accessibility. ;)
 
Best regards,
 
Martin Lemburg
 
 
Gesendet: Montag, 03. August 2015 um 05:35 Uhr

Von: "Yue Lin Ho" <yueli...@gmail.com>
An: tortoisegit-users <tortoise...@googlegroups.com>

Betreff: Re: High-Contrast desktop theme and coloring inside of TortoiseGit applications
--

Yue Lin Ho

unread,
Aug 10, 2015, 8:14:36 AM8/10/15
to tortoisegit-users


Martin Lemburg於 2015年8月10日星期一 UTC+8下午6時20分13秒寫道:
even still being too busy to take a look at the internals of TortoiseGit/Blame ... the installer of the new version made me smile and frown ...
I was not able to read a bit of the final screen ... not a good sign in times of accessibility. ;)
 

We don't change much.
Most changes are in TortoiseGitBlame.

Yue Lin Ho

 
Reply all
Reply to author
Forward
0 new messages