[richfaces-svn-commits] JBoss Rich Faces SVN: r5845 - in trunk/sandbox/ui/progressBAR/src/main: resources/org/richfaces/renderkit/html/css and 1 other directory.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Feb 5 18:41:31 EST 2008
Author: nbelaevski
Date: 2008-02-05 18:41:30 -0500 (Tue, 05 Feb 2008)
New Revision: 5845
Modified:
trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java
trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/css/progressBar.xcss
Log:
Animated background set as default
Image shift between frames corrected
Modified: trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java 2008-02-05 23:30:23 UTC (rev 5844)
+++ trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java 2008-02-05 23:41:30 UTC (rev 5845)
@@ -86,7 +86,7 @@
if (mainStage == null) {
mainStage = createMainStage(context);
}
- BufferedImage frame = mainStage.getSubimage(0, 48 - frameIndex * 4, frameSize.width, frameSize.height);
+ BufferedImage frame = mainStage.getSubimage(0, 48 - frameIndex * 2, frameSize.width, frameSize.height);
g2d.drawImage(frame, null, null);
// paint a shadow in the form of semi-transparent gradient
g2d.setPaint(new GradientPaint(0, 0, progressbarShadowStartColor, 0, 7, progressbarShadowEndColor));
Modified: trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/css/progressBar.xcss
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/css/progressBar.xcss 2008-02-05 23:30:23 UTC (rev 5844)
+++ trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/css/progressBar.xcss 2008-02-05 23:41:30 UTC (rev 5845)
@@ -28,7 +28,7 @@
<u:selector name=".rich-progress-bar-completed">
<u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.images.ProgressBarBg" />
+ <f:resource f:key="org.richfaces.renderkit.html.images.ProgressBarAnimatedBg" />
</u:style>
<u:style name="background-color" skin="selectControlColor" />
<u:style name="text-color" skin="controlBackgroundColor" />
More information about the richfaces-svn-commits
mailing list