Style tweaks
This commit is contained in:
parent
8c78419bbb
commit
3c0b08c811
@ -12,7 +12,8 @@ class LinksView(hippo.Canvas):
|
||||
self._bubbles = {}
|
||||
self._browser = browser
|
||||
|
||||
self._box = hippo.CanvasBox(background_color=0x414141ff)
|
||||
self._box = hippo.CanvasBox()
|
||||
style.apply_stylesheet(self._box, 'links.Box')
|
||||
self.set_root(self._box)
|
||||
|
||||
for link in model:
|
||||
@ -25,12 +26,12 @@ class LinksView(hippo.Canvas):
|
||||
color = IconColor(link.buddy.get_color())
|
||||
|
||||
bubble = Bubble(color=color)
|
||||
style.apply_stylesheet(bubble, 'bubble.Bubble')
|
||||
style.apply_stylesheet(bubble, 'links.Bubble')
|
||||
self._box.append(bubble)
|
||||
|
||||
text = hippo.CanvasLink(text=link.title)
|
||||
text.connect('activated', self._link_activated_cb, link)
|
||||
style.apply_stylesheet(text, 'bubble.Text')
|
||||
style.apply_stylesheet(text, 'links.Text')
|
||||
bubble.append(text, hippo.PACK_EXPAND)
|
||||
|
||||
self._bubbles[link] = bubble
|
||||
|
@ -2,12 +2,17 @@ import gtk
|
||||
|
||||
_screen_factor = gtk.gdk.screen_width() / 1200.0
|
||||
|
||||
bubble_Bubble = {
|
||||
links_Bubble = {
|
||||
'box-width' : int(250.0 * _screen_factor)
|
||||
}
|
||||
|
||||
bubble_Text = {
|
||||
links_Text = {
|
||||
'color' : 0x000000FF,
|
||||
'font' : '14px',
|
||||
'padding' : 5
|
||||
'padding' : 6
|
||||
}
|
||||
|
||||
links_Box = {
|
||||
'background_color' : 0x646464ff,
|
||||
'padding' : 4
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user