[hamster-applet] don't cache label as bitmap as it turns out that the subpixel antialias does not work without a back



commit 8c846969aa5641d925d9422eb5e91ee6bc4351d5
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun Sep 12 19:55:39 2010 +0100

    don't cache label as bitmap as it turns out that the subpixel antialias does not work without a background color (ORLY)

 src/hamster/widgets/tags.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/hamster/widgets/tags.py b/src/hamster/widgets/tags.py
index 4c1f773..32af4d7 100644
--- a/src/hamster/widgets/tags.py
+++ b/src/hamster/widgets/tags.py
@@ -317,7 +317,7 @@ class Tag(graphics.Sprite):
         font = gtk.Style().font_desc
         font_size = int(font.get_size() * 0.8 / pango.SCALE) # 80% of default
 
-        label = graphics.Label(text, size = font_size, color = (30, 30, 30), y = 1, cache_as_bitmap = True)
+        label = graphics.Label(text, size = font_size, color = (30, 30, 30), y = 1)
 
         corner = int((label.height + 3) / 3) + 0.5
         label.x = corner + 6
@@ -337,7 +337,7 @@ class Tag(graphics.Sprite):
                                      line_width = 1, cache_as_bitmap = True)
 
         self.add_child(self.tag)
-        self.add_child(graphics.Circle(4, 4, x = 2, y = h / 2 - 2,
+        self.add_child(graphics.Circle(3, 3, x = 2, y = h / 2 - 2,
                                        fill = "#fff",
                                        stroke = "#b4b4b4",
                                        line_width = 1,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]