You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2010/10/15 01:06:56 UTC
svn commit: r1022758 -
/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme.java
Author: smartini
Date: Thu Oct 14 23:06:55 2010
New Revision: 1022758
URL: http://svn.apache.org/viewvc?rev=1022758&view=rev
Log:
trim-whitespace
Modified:
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme.java
Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme.java?rev=1022758&r1=1022757&r2=1022758&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme.java (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme.java Thu Oct 14 23:06:55 2010
@@ -405,7 +405,7 @@ public final class TerraTheme extends Th
/**
* Returns a brighter version of the specified color. Specifically, it
- * increases the brightness (in the HSB color model) by the
+ * increases the brightness (in the HSB color model) by the
* <tt>colorMultiplier</tt> factor already set.
*/
public static Color brighten(Color color) {
@@ -414,7 +414,7 @@ public final class TerraTheme extends Th
/**
* Returns a darker version of the specified color. Specifically, it
- * decreases the brightness (in the HSB color model) by the
+ * decreases the brightness (in the HSB color model) by the
* <tt>colorMultiplier</tt> factor already set.
*/
public static Color darken(Color color) {
@@ -429,7 +429,7 @@ public final class TerraTheme extends Th
public static Color brighten(Color color, float adjustment) {
return adjustBrightness(color, adjustment);
}
-
+
/**
* Returns a darker version of the specified color. Specifically, it
* decreases the brightness (in the HSB color model) by the given
@@ -438,7 +438,7 @@ public final class TerraTheme extends Th
public static Color darken(Color color, float adjustment) {
return adjustBrightness(color, (adjustment * -1.0f));
}
-
+
private static Color adjustBrightness(Color color, float adjustment) {
float[] hsb = Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), null);
hsb[2] = Math.min(Math.max(hsb[2] + adjustment, 0f), 1f);