flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - Honor chromeColor style. Fix for https://issues.apache.org/jira/browse/FLEX-34766
Date Thu, 26 Feb 2015 23:57:15 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop 74ec7c729 -> ca3287102


Honor chromeColor style.
Fix for https://issues.apache.org/jira/browse/FLEX-34766


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/ca328710
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/ca328710
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/ca328710

Branch: refs/heads/develop
Commit: ca32871029a4d2d279a8da861a40f57facfd79af
Parents: 74ec7c7
Author: OmPrakash Muppirala <bigosmallm@gmail.com>
Authored: Thu Feb 26 15:54:15 2015 -0800
Committer: OmPrakash Muppirala <bigosmallm@gmail.com>
Committed: Thu Feb 26 15:55:51 2015 -0800

----------------------------------------------------------------------
 .../mobiletheme/src/spark/skins/android4/ButtonSkin.as        | 7 +++++++
 .../projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as   | 7 +++++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ca328710/frameworks/projects/mobiletheme/src/spark/skins/android4/ButtonSkin.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/android4/ButtonSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/android4/ButtonSkin.as
index 43fb108..b2c3473 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/android4/ButtonSkin.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/android4/ButtonSkin.as
@@ -347,6 +347,13 @@ public class ButtonSkin extends ButtonSkinBase
         if (labelDisplay.isTruncated)
             labelDisplayShadow.text = labelDisplay.text;
     }
+	
+	override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
+	{
+		super.drawBackground(unscaledWidth, unscaledHeight);
+		var chromeColor:uint = getStyle(fillColorStyleName);
+		applyColorTransform(this.border, 0xFFFFFF, chromeColor);
+	}
     
     /**
      *  Position the background of the skin. Override this function to re-position the background.


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ca328710/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
index 9fb4dd4..4fc83ae 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonSkin.as
@@ -338,6 +338,13 @@ public class ButtonSkin extends ButtonSkinBase
         layoutBorder(unscaledWidth, unscaledHeight);
         
     }
+	
+	override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
+	{
+		super.drawBackground(unscaledWidth, unscaledHeight);
+		var chromeColor:uint = getStyle(fillColorStyleName);
+		applyColorTransform(this.border, 0xFFFFFF, chromeColor);
+	}
     
     /**
      *  Position the background of the skin. Override this function to re-position the background.



Mime
View raw message