Revision: 4445
          http://vexi.svn.sourceforge.net/vexi/?rev=4445&view=rev
Author:   clrg
Date:     2012-10-05 01:16:06 +0000 (Fri, 05 Oct 2012)
Log Message:
-----------
Clean up button
- clickable puts normal=true in enabled trap
- fixes visual glitch with enabled=false preapply for buttons

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/button.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/button.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/button.t        
2012-10-05 01:13:59 UTC (rev 4444)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/button.t        
2012-10-05 01:16:06 UTC (rev 4445)
@@ -12,8 +12,6 @@
         thisbox.th_focus = $focus;
         
         active   ++= static.activeWrite;
-        enabled  ++= static.enableWrite;
-        enabled  ++= static.normalWrite;
         hover    ++= static.normalWrite;
         focused  ++= .lib.focusborder..focusWrite;
         hover    ++= static.normalWrite;
@@ -23,10 +21,12 @@
     
     static.enableWrite = function(v) {
         cascade = v;
-        trapee.textcolor = trapee.enabled ? .settings..textcolor : 
.settings..textcolor_disabled;
     }
     
     static.activeWrite = function(v) { cascade = v; trapee.form = "down"; }
-    static.normalWrite = function(v) { cascade = v; trapee.form = 
trapee.enabled ? (trapee.selected ? "down" : "up") : "thinup"; }
+    static.normalWrite = function(v) { cascade = v;
+        trapee.form = trapee.enabled ? (trapee.selected ? "down" : "up") : 
"thinup";
+        trapee.textcolor = trapee.enabled ? .settings..textcolor : 
.settings..textcolor_disabled;
+    }
     
 </vexi>

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


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to