Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

treemodel: set foreground color of tag and branch tips

Changeset 74b21b770955

Parent ccc83a03049b

by Yuki KODAMA

Changes to one file · Browse files at 74b21b770955 Showing diff from parent ccc83a03049b Diff from another changeset...

 
122
123
124
125
 
 
126
127
128
 
131
132
133
134
135
 
 
136
137
138
 
122
123
124
 
125
126
127
128
129
 
132
133
134
 
 
135
136
137
138
139
@@ -122,7 +122,8 @@
  taglist = hglib.toutf(', '.join(tags))   tstr = ''   for tag in tags: - tstr += '<span background="#ffffaa"> %s </span> ' % tag + tstr += '<span color="%s" background="%s"> %s </span> ' % \ + ('black', '#ffffaa', tag)     # show branch names per hgweb's logic   branches = webutil.nodebranchdict(self.repo, ctx) @@ -131,8 +132,8 @@
  branchstr = ''   for branch in branches:   branchstr += branch['name'] - bstr += '<span background="#aaffaa"> %s </span> ' % \ - branch['name'] + bstr += '<span color="%s" background="%s"> %s </span> ' % \ + ('black', '#aaffaa', branch['name'])   for branch in inbranches:   branchstr += branch['name']