Revision: 3145
          http://vexi.svn.sourceforge.net/vexi/?rev=3145&view=rev
Author:   clrg
Date:     2008-10-27 21:05:49 +0000 (Mon, 27 Oct 2008)

Log Message:
-----------
Make util.color more useful, add titlefill property to shadepane

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/shadepane.t
    trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/shadepane.t
    trunk/widgets/org.vexi.widgets/src/vexi/util/color.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/shadepane.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/shadepane.t  
2008-10-27 21:02:10 UTC (rev 3144)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/shadepane.t  
2008-10-27 21:05:49 UTC (rev 3145)
@@ -18,7 +18,7 @@
             v.Press1 ++= function(v) { cascade = v; thisbox = null; }
         }
         
-        thisbox.th_title ++= function(v) {
+        thisbox.th_titlebar ++= function(v) {
             cascade = v;
             v.Press1 ++= function(v) { shade = !shade; return; }
         }

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/shadepane.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/shadepane.t       
2008-10-27 21:02:10 UTC (rev 3144)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/shadepane.t       
2008-10-27 21:05:49 UTC (rev 3145)
@@ -24,6 +24,7 @@
         
         thisbox.th_close = $close;
         thisbox.th_title = $title;
+        thisbox.th_titlebar = $titlebar;
         
         var downarrow = .image.arrowdown_white;
         var rightarrow = .image.arrowright_white;
@@ -39,7 +40,7 @@
             var c = util.color..getReadableColor(v);
             $title.textcolor = c;
             c = c == "white" ? "_white" : "";
-            downarrow = .image["arrowright"+c];
+            downarrow = .image["arrowdown"+c];
             rightarrow = .image["arrowright"+c];
             $closeimg.fill = .image["close"+c];
         }

Modified: trunk/widgets/org.vexi.widgets/src/vexi/util/color.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/vexi/util/color.t        2008-10-27 
21:02:10 UTC (rev 3144)
+++ trunk/widgets/org.vexi.widgets/src/vexi/util/color.t        2008-10-27 
21:05:49 UTC (rev 3145)
@@ -7,8 +7,16 @@
         <desc>Utility functions for working with colors</desc>
     </meta:doc>
     
-    <ui:box />
+    <ui:box>
+        fill ++= static.fillWrite;
+    </ui:box>
     
+    /** assigns a textcolor that is readable against fill */
+    static.fillWrite = function(v) {
+        cascade = v;
+        trapee.textcolor = static.getReadableColor(trapee.fill);
+    }
+    
     var readable = {};
     
     /** takes a string 'v' and parses it as a date for 'o' */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to