Revision: 2123
          http://vexi.svn.sourceforge.net/vexi/?rev=2123&view=rev
Author:   clrg
Date:     2007-09-05 13:06:56 -0700 (Wed, 05 Sep 2007)

Log Message:
-----------
Tweak tab layout and remove unecessary properties

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t
    trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t       
2007-09-04 16:15:38 UTC (rev 2122)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t       
2007-09-05 20:06:56 UTC (rev 2123)
@@ -1,17 +1,23 @@
 <!-- Copyright 2006 - see COPYING for details [LGPL] -->
 
-<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" 
xmlns="org.vexi.theme.win2k" xmlns:lib="org.vexi.lib.widget">
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" 
xmlns="org.vexi.theme.win2k"
+    xmlns:lay="vexi.layout" xmlns:lib="org.vexi.lib.widget">
     <meta:doc>
         <author>Charles Goodwin</author>
     </meta:doc>
     
-    <lib:tab redirect="$content" orient="vertical" padding="4 10">
-        <ui:box id="gap" vshrink="true" />
-        <bevel form="tabtop">
-            <focusborder id="focus">
-                <ui:box id="content" />
-            </focusborder>
+    <lib:tab redirect="$content" layout="place">
+        <ui:box id="gap" height="2" vshrink="true" />
+        <bevel id="bevel" form="tabtop" y="2" shrink="true">
+            <lay:pad id="bg" padding="3" fill="#c4c0b8">
+                <focusborder id="focus">
+                    <lay:pad id="content" padding="2 6" />
+                </focusborder>
+            </lay:pad>
         </bevel>
+        
+        $bevel.height ++= function(v) { height = v - 2; cascade = v; }
+        $bevel.width ++= function(v) { width = v; cascade = v; }
        
         thisbox.th_focus = $focus;
         
@@ -22,8 +28,8 @@
         thisbox.selected ++= function(v)
         {
             cascade = v;
-            $content.fill = selected ? "#d4d0c8" : "#c4c0b8";
-            $gap.height = selected ? 0 : 2;
+            $bg.fill = selected ? "#d4d0c8" : "#c4c0b8";
+            $bevel.y = selected ? 0 : 2;
         }
         
         // assign static traps

Modified: trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t        2007-09-04 
16:15:38 UTC (rev 2122)
+++ trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t        2007-09-05 
20:06:56 UTC (rev 2123)
@@ -11,21 +11,15 @@
         </usage>
     </meta:doc>
     
-    <ui:box redirect="$content" selected="false">
-        <lay:margin id="margin">
-            <tab id="widget">
-                th_content = $content;
-                <lay:pad id="pad">
-                    <ui:box id="content" />
-                </lay:pad>
-            </tab>
-        </lay:margin>
+    <ui:box redirect="$content">
+        <tab id="widget">
+            th_content = $content;
+            <ui:box id="content" />
+        </tab>
         
         // glue code
         
-        rdrt..addRedirect(thisbox, $content, "orient", "layout", "font", 
"fontsize", "text", "textcolor");
-        rdrt..addRedirect(thisbox, $margin, "margin", "marginleft", 
"marginright", "margintop", "marginbottom");
-        rdrt..addRedirect(thisbox, $pad, "padding", "paddingleft", 
"paddingright", "paddingtop", "paddingbottom");
+        rdrt..addRedirect(thisbox, $content, "orient", "font", "fontsize", 
"text", "textcolor");
         rdrt..addRedirect(thisbox, $widget, "enabled", "focusable", "focused", 
"fill", "group", "selected", "KeyPressed");
         
         if ($widget.margin) thisbox.margin = $widget.margin;


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to