Author: ben
Date: 2007-07-08 13:35:10 -0700 (Sun, 08 Jul 2007)
New Revision: 5624

Modified:
   sandbox/ben/smush/main.lzx
Log:
small visual improvements

Modified: sandbox/ben/smush/main.lzx
===================================================================
--- sandbox/ben/smush/main.lzx  2007-07-08 20:11:29 UTC (rev 5623)
+++ sandbox/ben/smush/main.lzx  2007-07-08 20:35:10 UTC (rev 5624)
@@ -14,11 +14,12 @@
         <simplelayout axis="y"  />
 
         <!-- title bar -->
-        <view id="tbar"  width="${parent.width}"  opacity="0" >
-            <view resource="headerbkgnd"  stretches="width" 
width="${parent.width}" />
+        <view id="tbar" width="${parent.width}" opacity="0" >
+            <view resource="headerbkgnd" stretches="width" 
width="${parent.width}" />
             <view resource="logo" x="7" y="7" />
-            <animator name="headerfade_anm" attribute="opacity" to="1" 
duration="500" start="false" />
-        </view>
+            <text text="match a story with a picture to read the article" 
multiline="true" y="5" width="90" x="220" fontsize="9" fgcolor="0x2d4263" /> 
+            <animator name="headerfade_anm" attribute="opacity" to="1" 
duration="500" start="false" /> 
+        </view>        
         
         <!-- headline and photo content -->
         <view>
@@ -78,12 +79,10 @@
             <method name="reset">
                 this.currentImageSelection = null;
                 this.currentTitleSelection = null; 
-                gInfo.title.setText(null);
-                this.imgpreview.setSource(null);
             </method>
             
             <!-- selected headline and text -->
-            <view id="gInfo" name="infoArea" width="${parent.width-4}" 
height="${parent.height}" bgcolor="0xFFFFFF"> <!-- 0x778daa-->
+            <view id="gInfo" name="infoArea" width="$once{parent.width-4}" 
height="$once{parent.height}" bgcolor="0xFFFFFF"> <!-- 0x778daa-->
                 <text x="6" y="3" fontsize="14" name="title" width="195" 
multiline="true" height="$once{parent.height-4}" 
                       fgcolor="0x000000" fontstyle="bold" />        
             </view>
@@ -175,11 +174,11 @@
         <view name="capsule" opacity="0" x="76" y="27" width="156" >
             <view name="capl" x="0"  resource="circle" />
             <view name="capsule" bgcolor="0xFFFFFF" x="15" 
width="${parent.width - 30}" height="37" />
-            <view name="capr" x="${parent.width - width}"  resource="circle" 
/>       
+            <view name="capr" x="$once{parent.width - width}"  
resource="circle" />       
             
-            <text name="txt_nomatch" text="NO MATCH" x="17" y="6" 
width="${parent.width-10}" fontsize="16" fontstyle="bold" resize="true" />
+            <text name="txt_nomatch" text="NO MATCH" x="17" y="6" 
width="$once{parent.width-10}" fontsize="16" fontstyle="bold" resize="true" />
             
-            <view name="match" x="45" y="6" width="${parent.width-10}" >
+            <view name="match" x="45" y="6" width="$once{parent.width-10}" >
                 <text  text="MATCH" fontsize="16" fontstyle="bold" 
resize="true" y="-5"/>
                 <text  text="click to read article" fontsize="9" y="16" 
x="-10" />
             </view>
@@ -217,14 +216,14 @@
         </view>
     </view> 
     
-    <view id="gMoreInfo" width="$once{parent.width}" 
height="$once{parent.height}" bgcolor="0x220022"
-         opacity="0.9" y="${canvas.height}">
+    <view id="gMoreInfo" width="$once{parent.width}" 
height="$once{parent.height}" bgcolor="0xFFFFFF"
+         y="${canvas.height}">
          <animator name="animIn" attribute="y" to="0" duration="1000" 
start="false" />
          <animator name="animOut" attribute="y" to="${canvas.height}" 
duration="1000" start="false" />        
          <method name="show">
              animIn.doStart();
          </method>
-         <text name="txt" fgcolor="0xFFFFFF" multiline="true" 
width="$once{gInfo.title.width}"
+         <text name="txt" multiline="true" width="$once{gInfo.title.width}"
              height="$once{parent.height}" x="$once{gInfo.title.x}"
              />
         <view name="img" x="${gPreview.x}" width="${gPreview.width}" 
y="$once{gPreview.y}" height="$once{gPreview.height}" />


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to