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>
This commit is contained in:
parent
f3a4ec48e4
commit
3abe217a5b
@ -239,20 +239,23 @@ class CellRendererGraph(gtk.GenericCellRenderer):
|
|||||||
box_size / 4, 0, 2 * math.pi)
|
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):
|
if (len(names) != 0):
|
||||||
name = " "
|
name = " "
|
||||||
for item in names:
|
for item in names:
|
||||||
name = name + item + " "
|
name = name + item + " "
|
||||||
|
|
||||||
ctx.select_font_face("Monospace")
|
|
||||||
ctx.set_font_size(13)
|
ctx.set_font_size(13)
|
||||||
ctx.text_path(name)
|
if (flags & 1):
|
||||||
|
self.set_colour(ctx, colour, 0.5, 1.0)
|
||||||
self.set_colour(ctx, colour, 0.0, 0.5)
|
else:
|
||||||
ctx.stroke_preserve()
|
self.set_colour(ctx, colour, 0.0, 0.5)
|
||||||
|
ctx.show_text(name)
|
||||||
self.set_colour(ctx, colour, 0.5, 1.0)
|
|
||||||
ctx.fill()
|
|
||||||
|
|
||||||
class Commit:
|
class Commit:
|
||||||
""" This represent a commit object obtained after parsing the git-rev-list
|
""" This represent a commit object obtained after parsing the git-rev-list
|
||||||
|
Loading…
Reference in New Issue
Block a user