Public bug reported:

Binary package hint: kourou

kourou currently uses gtk.ICON_SIZE_BUTTON in the
xdg.IconTheme.getIconPath function. this is not a gtk function, so
doesnt use gtk.ICON_SIZE_BUTTON. Also this function is capable of
loading svg which usually renders a lot better at 64 pixels (which the
icon in the end gets scaled to) an approriate fix to the blurry icons in
ubuntus mid rc image would be the following code change and seeding an
icon theme (i.e. human-icon-theme brings openoffice icons with 64px)
that provides svg icons as well as icons that already come at 64 pixel
sizes so the scaling only has to be used as the worst case solution.
With this solution nearly all icons get rendered crisp and clear (alarm
clock being an exception here).

--- kourou.py   2008-10-24 20:17:47.000000000 +0200
+++ /usr/lib/hildon-desktop/kourou.py   2008-10-25 12:10:53.000000000 +0200
@@ -107,8 +107,8 @@
                 self.model.append(entry)
 
     def fetch_icon(self, icon_name, theme):
-        icon = xdg.IconTheme.getIconPath(icon_name, gtk.ICON_SIZE_BUTTON, \
-            theme, ["png", "xpm"])
+        icon = xdg.IconTheme.getIconPath(icon_name, 64, \
+            theme, ["svg", "png", "xpm"])
         pixbuf = None
         if icon:
             pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(icon, 64, 64)

** Affects: kourou (Ubuntu)
     Importance: Undecided
         Status: New

-- 
blurry icons in kourou due to not using svg, and wrong size options in 
xdg.IconTheme.getIconPath 
https://bugs.launchpad.net/bugs/289056
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to