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 2012/05/11 16:13:40 UTC

svn commit: r1337174 - /pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraRollupSkin.java

Author: smartini
Date: Fri May 11 14:13:39 2012
New Revision: 1337174

URL: http://svn.apache.org/viewvc?rev=1337174&view=rev
Log:
add buttonColor style property, and set as default color the same used as default in labels

Modified:
    pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraRollupSkin.java

Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraRollupSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraRollupSkin.java?rev=1337174&r1=1337173&r2=1337174&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraRollupSkin.java (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraRollupSkin.java Fri May 11 14:13:39 2012
@@ -197,7 +197,7 @@ public class TerraRollupSkin extends Rol
     public TerraRollupSkin() {
         TerraTheme theme = (TerraTheme)Theme.getTheme();
 
-        buttonColor = theme.getColor(9);
+        buttonColor = theme.getColor(1);
         spacing = 4;
         buffer = 4;
         fill = false;
@@ -369,6 +369,11 @@ public class TerraRollupSkin extends Rol
         return buttonColor;
     }
 
+    public final void setButtonColor(int color) {
+        TerraTheme theme = (TerraTheme)Theme.getTheme();
+        setButtonColor(theme.getColor(color));
+    }
+
     public void setButtonColor(Color buttonColor) {
         if (buttonColor == null) {
             throw new IllegalArgumentException("buttonColor is null.");
@@ -523,4 +528,5 @@ public class TerraRollupSkin extends Rol
 
         invalidateComponent();
     }
+
 }