Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

use same default diff colors as good old 'hgtk log'

And let's not write added and removed difflines in bold. Bold font is notoriously
difficult to render and read (especially if it is colorized) and we didn't do these
in bold in hgtk log.

Removal of boldness of difflines is done by changing lexers.py

Changeset 7d90b5db8f57

Parent 9e7d1cd143dd

by Adrian Buehlmann

Changes to 2 files · Browse files at 7d90b5db8f57 Showing diff from parent 9e7d1cd143dd Diff from another changeset...

 
206
207
208
209
 
210
211
212
213
214
215
216
 
217
218
219
220
221
222
223
 
224
225
226
 
206
207
208
 
209
210
211
212
213
214
215
 
216
217
218
219
220
221
222
 
223
224
225
226
@@ -206,21 +206,21 @@
  return self.ui.config(self.section, 'difffgcolor', default)     @cached - def getDiffPlusColor(self, default='green'): + def getDiffPlusColor(self, default='#006400'):   """   diffpluscolor: text color of added lines in diffs   """   return self.ui.config(self.section, 'diffpluscolor', default)     @cached - def getDiffMinusColor(self, default='red'): + def getDiffMinusColor(self, default='#900000'):   """   diffminuscolor: text color of removed lines in diffs   """   return self.ui.config(self.section, 'diffminuscolor', default)     @cached - def getDiffSectionColor(self, default='magenta'): + def getDiffSectionColor(self, default='blue'):   """   diffsectioncolor: text color of new section in diffs   """
 
136
137
138
139
140
141
142
143
144
145
146
 
136
137
138
 
 
 
 
 
139
140
141
@@ -136,11 +136,6 @@
  font.setPointSize(size)   lexer.setFont(font, -1)   - bfont = QtGui.QFont(font) - bfont.setBold(True) - lexer.setFont(bfont, 5) - lexer.setFont(bfont, 6) -   return lexer