From effadc7c80fbd66382bd2e474203028fb15a761e Mon Sep 17 00:00:00 2001 From: wangzhiyuan123 <415176294@qq.com> Date: Thu, 6 Aug 2015 17:30:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fixed:=E8=89=B2=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/KxMenu.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/KxMenu.m b/Source/KxMenu.m index bdfb6a3..f2dbad3 100644 --- a/Source/KxMenu.m +++ b/Source/KxMenu.m @@ -624,8 +624,8 @@ - (void) drawRect:(CGRect)rect - (void)drawBackground:(CGRect)frame inContext:(CGContextRef) context { - CGFloat R0 = 0.267, G0 = 0.303, B0 = 0.335; - CGFloat R1 = 0.040, G1 = 0.040, B1 = 0.040; + CGFloat R0 = 0, G0 = 0, B0 = 0; + CGFloat R1 = 0, G1 = 0, B1 = 0; UIColor *tintColor = [KxMenu tintColor]; if (tintColor) { @@ -726,8 +726,8 @@ - (void)drawBackground:(CGRect)frame const CGFloat locations[] = {0, 1}; const CGFloat components[] = { - R0, G0, B0, 1, - R1, G1, B1, 1, + R0, G0, B0, 0.7, + R1, G1, B1, 0.7, }; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); From f122f44aaa211b8b3abf6e3e6218a1e2f7f9741d Mon Sep 17 00:00:00 2001 From: wangzhiyuan123 <415176294@qq.com> Date: Thu, 6 Aug 2015 18:39:41 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fixed:=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/KxMenu.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/KxMenu.m b/Source/KxMenu.m index f2dbad3..bdfb6a3 100644 --- a/Source/KxMenu.m +++ b/Source/KxMenu.m @@ -624,8 +624,8 @@ - (void) drawRect:(CGRect)rect - (void)drawBackground:(CGRect)frame inContext:(CGContextRef) context { - CGFloat R0 = 0, G0 = 0, B0 = 0; - CGFloat R1 = 0, G1 = 0, B1 = 0; + CGFloat R0 = 0.267, G0 = 0.303, B0 = 0.335; + CGFloat R1 = 0.040, G1 = 0.040, B1 = 0.040; UIColor *tintColor = [KxMenu tintColor]; if (tintColor) { @@ -726,8 +726,8 @@ - (void)drawBackground:(CGRect)frame const CGFloat locations[] = {0, 1}; const CGFloat components[] = { - R0, G0, B0, 0.7, - R1, G1, B1, 0.7, + R0, G0, B0, 1, + R1, G1, B1, 1, }; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();