Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

status: more tweaks to diff header display

selection summary line is in italics
foreground color is toggled based on file selection state

Changeset 3cdff45f0b27

Parent 73165e662498

by Steve Borho

Changes to 2 files · Browse files at 3cdff45f0b27 Showing diff from parent 73165e662498 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgshelve.py Stacked
 
115
116
117
118
119
 
 
120
121
122
 
115
116
117
 
 
118
119
120
121
122
@@ -115,8 +115,8 @@
  if selected(i):   shunks += 1   slines += h.added + h.removed - str += _('total: %d hunks (%d changed lines); ' - 'selected: %d hunks (%d changed lines)') % (hunks, + str += _('<i>total: %d hunks (%d changed lines); ' + 'selected: %d hunks (%d changed lines)</i>') % (hunks,   lines, shunks, slines)   break   str += h
Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
644
645
646
 
 
647
648
649
650
651
652
653
654
 
644
645
646
647
648
649
 
 
 
 
650
651
652
@@ -644,11 +644,9 @@
  displayed = row[DM_DISPLAYED]   sel = lambda x: not dmodel[hc+x+1][DM_REJECTED]   newtext = self._shelve_chunks[row[DM_CHUNK_ID]].selpretty(sel) + if not selected: + newtext = "<span foreground='#888888'>" + newtext + "</span>"   row[DM_DISPLAYED] = newtext - if selected: - row[DM_FONT] = self.headerfont - else: - row[DM_FONT] = self.rejfont     def _show_toggle(self, check, toggletype):   self.opts[toggletype] = check.get_active()