You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/09/30 08:44:29 UTC
[incubator-weex] 01/04: Revert "[iOS] Fix the problem that
background color should use [UIColor clearColor] instance when transparent.
(#2943)"
This is an automated email from the ASF dual-hosted git repository.
moshen pushed a commit to branch revert-backgroundcolor
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
commit 65e7acbe14de7f7bc87b577f7a30ace98cea5b32
Author: qianyuan.wqy <qi...@taobao.com>
AuthorDate: Mon Sep 30 16:11:08 2019 +0800
Revert "[iOS] Fix the problem that background color should use [UIColor clearColor] instance when transparent. (#2943)"
This reverts commit f2786a1842f7f52a2e7e23f9018f15eb07f8b99b.
---
ios/sdk/WeexSDK/Sources/Utility/WXConvert.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m b/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
index 4ad089f..117f2a4 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
@@ -440,7 +440,7 @@ WX_NUMBER_CONVERT(NSUInteger, unsignedIntegerValue)
g = g8 / 255.f;
b = b8 / 255.f;
a = a8 / 255.f;
- return a < (0.5 / 255.f) ? [UIColor clearColor] : [UIColor colorWithRed:r green:g blue:b alpha:a];
+ return a < 0.5 ? [UIColor clearColor] : [UIColor colorWithRed:r green:g blue:b alpha:a];
}
+ (uint32_t)RGBAColorFromUIColor:(UIColor*)color