Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-10-13 17:52:44 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-13 17:52:44 (GMT)
commit3c0b08c81105ce955de0616394eee2c65365ac2e (patch)
tree45d34b4bc3ddee7f40a49828659a0c80c5134d05 /activities
parent8c78419bbba22cb88756656f85c8595e87f3e5a7 (diff)
Style tweaks
Diffstat (limited to 'activities')
-rw-r--r--activities/web/linksview.py7
-rw-r--r--activities/web/stylesheet.py11
2 files changed, 12 insertions, 6 deletions
diff --git a/activities/web/linksview.py b/activities/web/linksview.py
index 1afd651..df67739 100644
--- a/activities/web/linksview.py
+++ b/activities/web/linksview.py
@@ -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
diff --git a/activities/web/stylesheet.py b/activities/web/stylesheet.py
index eefb91c..0834ddd 100644
--- a/activities/web/stylesheet.py
+++ b/activities/web/stylesheet.py
@@ -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
}