diff options
author | Pavel Roskin <proski@gnu.org> | 2006-02-28 19:11:08 +0530 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-28 11:02:02 -0800 |
commit | 3abe217a5bd1aefa748d53c08704b2a8a622307c (patch) | |
tree | 7530a5ef51f19624ea584c8a843d33551b9cc9d0 /contrib | |
parent | f3a4ec48e402a7b49d410bdcb23470e9723788b0 (diff) | |
download | git-3abe217a5bd1aefa748d53c08704b2a8a622307c.tar.gz git-3abe217a5bd1aefa748d53c08704b2a8a622307c.tar.xz |
gitview: Select the text color based on whether the entry in highlighted. Use standard font.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gitview/gitview | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview index 048caf6f8..aded7ede7 100755 --- a/contrib/gitview/gitview +++ b/contrib/gitview/gitview @@ -239,20 +239,23 @@ class CellRendererGraph(gtk.GenericCellRenderer): box_size / 4, 0, 2 * math.pi) + self.set_colour(ctx, colour, 0.0, 0.5) + ctx.stroke_preserve() + + self.set_colour(ctx, colour, 0.5, 1.0) + ctx.fill_preserve() + if (len(names) != 0): name = " " for item in names: name = name + item + " " - ctx.select_font_face("Monospace") ctx.set_font_size(13) - ctx.text_path(name) - - self.set_colour(ctx, colour, 0.0, 0.5) - ctx.stroke_preserve() - - self.set_colour(ctx, colour, 0.5, 1.0) - ctx.fill() + if (flags & 1): + self.set_colour(ctx, colour, 0.5, 1.0) + else: + self.set_colour(ctx, colour, 0.0, 0.5) + ctx.show_text(name) class Commit: """ This represent a commit object obtained after parsing the git-rev-list |