DirectFB - Home of the pragmatist Roadmap


[directfb-users] Beautifying the idlebar MultiMail plugin
Mailing List archive

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

[directfb-users] Beautifying the idlebar MultiMail plugin



Hi,

I found the following useful in making the idlebar/MultiMail plugin look
nicer on the blurr skin (1.5.2):-

--- ./freevo/plugins/idlebar/save_MultiMail.py  2004-12-02
12:32:30.000000000 +0000
+++ ./freevo/plugins/idlebar/MultiMail.py       2004-12-19
22:08:33.000000000 +0000
@@ -73,11 +73,11 @@

     def draw(self, (type, object), x, osd):
         if self.unread > 0:
-            image_width = osd.draw_image(self.MAILIMAGE, (x, osd.y + 2, -1,
-1))[0]
-            font  = osd.get_font('weather')
+            image_width = osd.draw_image(self.MAILIMAGE, (x, osd.y + 10,
-1, -1))[0]
+            font  = osd.get_font('small0')
             unread_str = '%3s' % self.unread
             text_width = font.stringsize(unread_str)
-            osd.write_text(unread_str, font, None, x, osd.y + 55 - font.h,
text_width, font.h, 'left', 'top')
+            osd.write_text(unread_str, font, None, x + 15, osd.y + 55 -
font.h, text_width, font.h, 'left', 'top')
             display_width = max(image_width, text_width)
         else:
             display_width = osd.draw_image(self.NO_MAILIMAGE, (x, osd.y +
10, -1, -1))[0]


Thanks for a great product.

Colin Harrison





Home | Main Index | Thread Index


directfb.org / Development / Old Archives