Author: andre
Date: 2009-12-04 11:55:34 +0100 (Fri, 04 Dec 2009)
New Revision: 40129

Added:
   openimages/trunk/src/main/webapp/style/images/startoverlay-284x213.png
   openimages/trunk/src/main/webapp/style/images/startoverlay-320x240.png
Modified:
   openimages/trunk/src/main/webapp/WEB-INF/tags/oip/audio.tagx
   openimages/trunk/src/main/webapp/WEB-INF/tags/oip/video.tagx
Log:
smaller overlay

Modified: openimages/trunk/src/main/webapp/WEB-INF/tags/oip/audio.tagx
===================================================================
--- openimages/trunk/src/main/webapp/WEB-INF/tags/oip/audio.tagx        
2009-12-04 10:51:07 UTC (rev 40128)
+++ openimages/trunk/src/main/webapp/WEB-INF/tags/oip/audio.tagx        
2009-12-04 10:55:34 UTC (rev 40129)
@@ -15,7 +15,14 @@
   <c:set var="h" value="${empty height ? '240' : height}" />
 
   <!-- TODO: doesn't work in a war: -->
-  <c:set 
var="overlay"><jsp:expression>org.mmbase.module.core.MMBaseContext.getHtmlRoot()</jsp:expression>/style/images/startoverlay.png</c:set>
+  <c:choose>
+    <c:when test="${width eq 320 or width eq 284}">
+      <c:set 
var="overlay"><jsp:expression>org.mmbase.module.core.MMBaseContext.getHtmlRoot()</jsp:expression>/style/images/startoverlay-${w}x${h}.png</c:set>
+    </c:when>
+    <c:otherwise>
+      <c:set 
var="overlay"><jsp:expression>org.mmbase.module.core.MMBaseContext.getHtmlRoot()</jsp:expression>/style/images/startoverlay.png</c:set>
+    </c:otherwise>
+  </c:choose>
   <c:set var="template">s(${w}!x${h}!)+adjoin(${overlay})+flatten</c:set>
   <c:set var="basictemplate">s(${w}!x${h}!)</c:set>
   <c:set var="poster">${mm:link('/style/images/preview_audio.png')}</c:set>

Modified: openimages/trunk/src/main/webapp/WEB-INF/tags/oip/video.tagx
===================================================================
--- openimages/trunk/src/main/webapp/WEB-INF/tags/oip/video.tagx        
2009-12-04 10:51:07 UTC (rev 40128)
+++ openimages/trunk/src/main/webapp/WEB-INF/tags/oip/video.tagx        
2009-12-04 10:55:34 UTC (rev 40129)
@@ -15,7 +15,14 @@
   <c:set var="h" value="${empty height ? '240' : height}" />
 
   <!-- TODO: doesn't work in a war: -->
-  <c:set 
var="overlay"><jsp:expression>org.mmbase.module.core.MMBaseContext.getHtmlRoot()</jsp:expression>/style/images/startoverlay.png</c:set>
+  <c:choose>
+    <c:when test="${width eq 320 or width eq 284}">
+      <c:set 
var="overlay"><jsp:expression>org.mmbase.module.core.MMBaseContext.getHtmlRoot()</jsp:expression>/style/images/startoverlay-${w}x${h}.png</c:set>
+    </c:when>
+    <c:otherwise>
+      <c:set 
var="overlay"><jsp:expression>org.mmbase.module.core.MMBaseContext.getHtmlRoot()</jsp:expression>/style/images/startoverlay.png</c:set>
+    </c:otherwise>
+  </c:choose>
   <c:set var="template">s(${w}!x${h}!)+adjoin(${overlay})+flatten</c:set>
   <c:set var="basictemplate">s(${w}!x${h}!)</c:set>
   <c:set var="poster"><mm:url absolute="true" 
page="/style/images/preview_video.png" /></c:set>

Added: openimages/trunk/src/main/webapp/style/images/startoverlay-284x213.png
===================================================================
(Binary files differ)


Property changes on: 
openimages/trunk/src/main/webapp/style/images/startoverlay-284x213.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: openimages/trunk/src/main/webapp/style/images/startoverlay-320x240.png
===================================================================
(Binary files differ)


Property changes on: 
openimages/trunk/src/main/webapp/style/images/startoverlay-320x240.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to