diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-01-21 16:39:56 -0500 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-01-21 16:39:56 -0500 |
commit | 7698f6cd9885b044e9f8e393400cdfc5ccaf7573 (patch) | |
tree | 505904d56cbcdce94b22dadb01a882495863bf2f | |
parent | 496f0f2100f1a66ec8ff4d57c8eab3d899a39167 (diff) | |
download | sdl_ios-hotfix/issue_227.tar.gz |
Fix color numbers in SDLConsoleControllerhotfix/issue_227
Background coloring still does not work
-rw-r--r-- | SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m index c9e7a5a65..83cb18ebd 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m +++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLConsoleController.m @@ -151,18 +151,22 @@ NSString *detail = [NSString stringWithFormat:@"%@ - %@", tempdetail, [response resultCode]]; cell.detailTextLabel.text = detail; - cell.backgroundColor = [UIColor colorWithRed:156 green:184 blue:151 alpha:1]; - } else if ([rpc.messageType isEqualToString:@"request"]) { - cell.detailTextLabel.text = tempdetail; - cell.backgroundColor = [UIColor colorWithRed:137 green:187 blue:254 alpha:1]; } else { cell.detailTextLabel.text = tempdetail; - cell.backgroundColor = [UIColor colorWithRed:193 green:174 blue:224 alpha:1]; } - + + if ([rpc.messageType isEqualToString:@"response"]) { + cell.backgroundColor = [UIColor colorWithRed:0.611 green:0.721 blue:0.592 alpha:1.0]; + } else if ([rpc.messageType isEqualToString:@"request"]) { + cell.backgroundColor = [UIColor colorWithRed:0.537 green:0.733 blue:0.996 alpha:1.0]; + } else { + cell.backgroundColor = [UIColor colorWithRed:0.757 green:0.682 blue:0.878 alpha:1.0]; + } + } else { cell.textLabel.text = msg; cell.detailTextLabel.text = tempdetail; + cell.backgroundColor = [UIColor whiteColor]; } return cell; |