More positive diff colors (I've colored the bikeshed!)
anatoly techtonik
techtonik at gmail.com
Sat Jul 3 03:46:57 CDT 2010
Colors on windows are nice as a fact, but ugly in appearance. Here is a patch
against stable for more positive appearance. Config preview:
[color]
diff.file_a = green bold
diff.file_b = green bold
diff.hunk = magenta bold
diff.deleted = bold
diff.inserted = yellow bold
It is surprising to see that plain bold makes line dimmer.
# HG changeset patch
# User anatoly techtonik <techtonik at gmail.com>
# Date 1278145707 -10800
# Branch stable
# Node ID a8fb87916fc86839965839b2240a91c585562b18
# Parent b5c0f6a1143066c453032ab6dc4163ef52e932ee
more positive diff colors
diff -r b5c0f6a11430 -r a8fb87916fc8 hgext/color.py
--- a/hgext/color.py Mon May 17 21:16:35 2010 +0200
+++ b/hgext/color.py Sat Jul 03 11:28:27 2010 +0300
@@ -284,11 +284,11 @@
_diff_effects = {'diffline': ['bold'],
'extended': ['cyan', 'bold'],
- 'file_a': ['red', 'bold'],
+ 'file_a': ['green', 'bold'],
'file_b': ['green', 'bold'],
- 'hunk': ['magenta'],
- 'deleted': ['red'],
- 'inserted': ['green'],
+ 'hunk': ['magenta', 'bold'],
+ 'deleted': ['bold'],
+ 'inserted': ['yellow', 'bold'],
'changed': ['white'],
'trailingwhitespace': ['bold', 'red_background']}
--
anatoly t.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bloodygrass.png
Type: image/png
Size: 7586 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100703/f53fabdc/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: positive.png
Type: image/png
Size: 11217 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100703/f53fabdc/attachment-0001.png>
More information about the Mercurial-devel
mailing list