# HG changeset patch
# User Yuki KODAMA <[email protected]>
# Date 1244212504 -32400
# Node ID ae72bb98cc0450401a3db2b4c8cf85c3b535ce43
# Parent  5b460e464f818cce752ece945081ca696939baec
treemodel: set foreground color of tag and branch tips

diff --git a/hggtk/logview/treemodel.py b/hggtk/logview/treemodel.py
--- a/hggtk/logview/treemodel.py
+++ b/hggtk/logview/treemodel.py
@@ -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']

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to