Author: duncan
Date: Mon Feb  5 21:22:40 2007
New Revision: 9168

Modified:
   branches/rel-1/freevo/share/skins/main/blurr.fxd
   branches/rel-1/freevo/src/plugins/idlebar/encoding.py

Log:
There seems to be a problem with the small0 font as it doesn't show
Added detachbar font to the blurr skin, small at 10 pt
Changed the encoding idlebar back to use the detach bar font


Modified: branches/rel-1/freevo/share/skins/main/blurr.fxd
==============================================================================
--- branches/rel-1/freevo/share/skins/main/blurr.fxd    (original)
+++ branches/rel-1/freevo/share/skins/main/blurr.fxd    Mon Feb  5 21:22:40 2007
@@ -864,6 +864,10 @@
         <font label="info label"   name="Arial_Bold" size="14" 
color="0xffffff"/>
         <font label="info value"   name="Arial_Bold" size="14" 
color="0xffffff"/>
         
+        <font label="detachbar"  name="Arial_Bold" size="10" color="0xffffff">
+            <shadow visible="yes" x="2" y="2" color="0xaa0000" border="yes"/>
+        </font>
+
         <font label="clock"   name="Arial_Bold" size="16" color="0xffffff"/>
         
         <!-- Basic Fonts -->

Modified: branches/rel-1/freevo/src/plugins/idlebar/encoding.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/idlebar/encoding.py       (original)
+++ branches/rel-1/freevo/src/plugins/idlebar/encoding.py       Mon Feb  5 
21:22:40 2007
@@ -94,6 +94,10 @@
         self.laststate = None
 
 
+    def config(self):
+        return [ ('ENCODING_IDLEBAR', True, 'Use the idlebar'), ]
+
+
     def getprogress(self):
         _debug_('getprogress(self)', 2)
         """Get the progress & pass information of the job currently encoding.
@@ -210,7 +214,7 @@
 
 
     def calculatesizes(self, osd, font):
-        _debug_('calculatesizes(self, osd, font)', 2)
+        _debug_('calculatesizes(self, osd, font)', 0)
         """
         sizecalcs is not necessery on every pass
         """
@@ -231,7 +235,8 @@
                     self.idlebar.take_space(250)
 
         #turn off idlebar for testing
-        #self.idlebar = None
+        if not config.ENCODING_IDLEBAR:
+            self.idlebar = None
 
         if self.idlebar:
             self.boxborder = 0
@@ -287,7 +292,9 @@
         _debug_("draw=%.2f, interval=%s, state=%s" % (duration, 
self.draw_interval, self.state), 2)
         self.drawtime = now
         self.lastdraw = now
-        font = osd.get_font('small0')
+        font = osd.get_font('detachbar')
+        if font == osd.get_font('default'):     
+            font = osd.get_font('info value')
 
         self.calculate = True
         self.settext()

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to