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] - Set background color based on chromeColor style value Fix for https://issues.apache.org/jira/browse/FLEX-34748
Date Thu, 12 Feb 2015 09:27:52 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop c6f56a68e -> 5c98108cc


Set background color based on chromeColor style value
Fix for https://issues.apache.org/jira/browse/FLEX-34748


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

Branch: refs/heads/develop
Commit: 5c98108cc74537a0f613ea6ebbea48fb87de026c
Parents: c6f56a6
Author: OmPrakash Muppirala <bigosmallm@gmail.com>
Authored: Thu Feb 12 01:25:29 2015 -0800
Committer: OmPrakash Muppirala <bigosmallm@gmail.com>
Committed: Thu Feb 12 01:26:49 2015 -0800

----------------------------------------------------------------------
 .../src/spark/skins/ios7/ActionBarSkin.as           | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/5c98108c/frameworks/projects/mobiletheme/src/spark/skins/ios7/ActionBarSkin.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/ios7/ActionBarSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/ios7/ActionBarSkin.as
index 1e46d38..29df131 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/ios7/ActionBarSkin.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/ios7/ActionBarSkin.as
@@ -549,20 +549,8 @@ public class ActionBarSkin extends MobileSkin
 
         var chromeColor:uint = getStyle("chromeColor");
         var backgroundAlphaValue:Number = getStyle("backgroundAlpha");
-        var colors:Array = [];
-        
-        // apply alpha to chromeColor fill only
-        var backgroundAlphas:Array = [backgroundAlphaValue, backgroundAlphaValue];
-        
-        // exclude top and bottom 1px borders
-        colorMatrix.createGradientBox(unscaledWidth, unscaledHeight - (borderSize * 2), Math.PI
/ 2, 0, 0);
-        
-        colors[0] = ColorUtil.adjustBrightness2(chromeColor, 20);
-        colors[1] = chromeColor;
-        
-        graphics.beginGradientFill(GradientType.LINEAR, colors, backgroundAlphas, ACTIONBAR_CHROME_COLOR_RATIOS,
colorMatrix);
-        graphics.drawRect(0, borderSize, unscaledWidth, unscaledHeight - (borderSize * 2));
-        graphics.endFill();
+		
+		applyColorTransform(this.border, 0xFFFFFF, chromeColor);
     }
     
 }


Mime
View raw message