* src/PedView.py: Correct colors so that they work with dark and
high-contrast themes. svn: r2276
This commit is contained in:
parent
9d79e056e4
commit
57286b7845
@ -1,5 +1,7 @@
|
|||||||
2003-10-21 Alex Roitman <shura@alex.neuro.umn.edu>
|
2003-10-21 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/MediaView.py: Correct behavior for right-click popup menu.
|
* src/MediaView.py: Correct behavior for right-click popup menu.
|
||||||
|
* src/PedView.py: Correct colors so that they work with dark and
|
||||||
|
high-contrast themes.
|
||||||
|
|
||||||
2003-10-20 Don Allingham <dallingham@users.sourceforge.net>
|
2003-10-20 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/gramps.glade: widen the ChildSelect window
|
* src/gramps.glade: widen the ChildSelect window
|
||||||
|
@ -87,8 +87,8 @@ class DispBox:
|
|||||||
y1=0,
|
y1=0,
|
||||||
x2=w,
|
x2=w,
|
||||||
y2=h,
|
y2=h,
|
||||||
outline_color_gdk=style.bg[gtk.STATE_NORMAL],
|
outline_color_gdk=style.fg[gtk.STATE_NORMAL],
|
||||||
fill_color_gdk=style.white)
|
fill_color_gdk=style.base[gtk.STATE_NORMAL])
|
||||||
|
|
||||||
font = gtk.gdk.font_from_description(style.font_desc)
|
font = gtk.gdk.font_from_description(style.font_desc)
|
||||||
self.textbox = self.group.add(gnome.canvas.CanvasText,
|
self.textbox = self.group.add(gnome.canvas.CanvasText,
|
||||||
@ -358,7 +358,7 @@ class PedigreeView:
|
|||||||
pts = [startx,y1, startx,y2+(h/2.0), x2,y2+(h/2.0)]
|
pts = [startx,y1, startx,y2+(h/2.0), x2,y2+(h/2.0)]
|
||||||
item = self.root.add(gnome.canvas.CanvasLine, width_pixels=2,
|
item = self.root.add(gnome.canvas.CanvasLine, width_pixels=2,
|
||||||
points=pts, line_style=ls,
|
points=pts, line_style=ls,
|
||||||
fill_color_gdk=style.black)
|
fill_color_gdk=style.fg[gtk.STATE_NORMAL])
|
||||||
item.set_data(_PERSON,data)
|
item.set_data(_PERSON,data)
|
||||||
item.connect("event",self.line_event)
|
item.connect("event",self.line_event)
|
||||||
self.canvas_items.append(item)
|
self.canvas_items.append(item)
|
||||||
@ -393,7 +393,7 @@ class PedigreeView:
|
|||||||
msg = _("Double clicking will make %s the active person") % name
|
msg = _("Double clicking will make %s the active person") % name
|
||||||
self.sb.set_status(msg)
|
self.sb.set_status(msg)
|
||||||
elif event.type == gtk.gdk.LEAVE_NOTIFY:
|
elif event.type == gtk.gdk.LEAVE_NOTIFY:
|
||||||
obj.set(fill_color_gdk=style.black, width_pixels=2)
|
obj.set(fill_color_gdk=style.fg[gtk.STATE_NORMAL], width_pixels=2)
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
def find_tree(self,person,index,depth,list,val=0):
|
def find_tree(self,person,index,depth,list,val=0):
|
||||||
|
Loading…
Reference in New Issue
Block a user