Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericJacobs committed Dec 4, 2014
1 parent adc2b54 commit 0b6f683
Show file tree
Hide file tree
Showing 28 changed files with 14,072 additions and 14,113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ - (UICollectionViewCell *)collectionView:(JSQMessagesCollectionView *)collection
JSQDisplayedMessageCollectionViewCell * errorCell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
errorCell.cellLabel.text = [errorMessage text];
errorCell.cellLabel.textColor = [UIColor darkGrayColor];
errorCell.cellLabel.layer.borderColor = [[UIColor colorWithRed:195.f/255.f green:0 blue:22.f/255.f alpha:1.f] CGColor];
errorCell.cellLabel.layer.borderColor = [[UIColor colorWithRed:195.f/255.f green:0 blue:22.f/255.f alpha:1.0f] CGColor];
errorCell.headerImageView.image = [UIImage imageNamed:@"error_white"];
errorCell.layer.shouldRasterize = YES;
errorCell.layer.rasterizationScale = [UIScreen mainScreen].scale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,4 @@
*/
+ (UIButton *)defaultSendButtonItem;


+ (UIButton *)signalCallButtonItem;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,4 @@ + (UIButton *)defaultSendButtonItem
return sendButton;
}

+ (UIButton *)signalCallButtonItem
{
NSString * sendTitle = NSLocalizedStringFromTable(@"Call", @"JSQMessages", @"Text for the send button on the messages view toolbar");

UIButton *sendButton = [[UIButton alloc] initWithFrame:CGRectZero];
[sendButton setTitle:sendTitle forState:UIControlStateNormal];
[sendButton setTitleColor:[UIColor jsq_messageBubbleBlueColor] forState:UIControlStateNormal];
[sendButton setTitleColor:[[UIColor jsq_messageBubbleBlueColor] jsq_colorByDarkeningColorWithValue:0.1f] forState:UIControlStateHighlighted];
[sendButton setTitleColor:[UIColor lightGrayColor] forState:UIControlStateDisabled];

sendButton.titleLabel.font = [UIFont fontWithName:@"HelveticaNeue-Thin" size:17.0f];
sendButton.titleLabel.adjustsFontSizeToFitWidth = YES;
sendButton.titleLabel.minimumScaleFactor = 0.85f;
sendButton.contentMode = UIViewContentModeCenter;
sendButton.backgroundColor = [UIColor clearColor];
sendButton.tintColor = [UIColor jsq_messageBubbleBlueColor];

return sendButton;

}

@end
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="14A389" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="14C68k" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,14 @@ - (void)jsq_rightBarButtonPressed:(UIButton *)sender

- (void)toggleSendButtonEnabled
{
/* Signal Override
* @warning
*
* Override default to allow actions on empty text
*/
BOOL hasText = [self.contentView.textView hasText];
//
// if (self.sendButtonOnRight) {
// self.contentView.rightBarButtonItem.enabled = hasText;
// }
// else {
// self.contentView.leftBarButtonItem.enabled = hasText;
// }

if (hasText)
{
self.contentView.rightBarButtonItem.enabled = YES;
} else if ([self.contentView.rightBarButtonItem.titleLabel.text isEqualToString:@"Send"]) {
self.contentView.rightBarButtonItem.enabled = NO;
} else {
self.contentView.rightBarButtonItem.enabled = YES;
}



if (self.sendButtonOnRight) {
self.contentView.rightBarButtonItem.enabled = hasText;
}
else {
self.contentView.leftBarButtonItem.enabled = hasText;
}
}

#pragma mark - Key-value observing
Expand Down
2 changes: 1 addition & 1 deletion Manifest.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
JSQMessagesViewController:
:commit: 7c2cec63f9e05ac7859df786e6ca31af2f0dc583
:commit: 82482a1fc560fb4f716babbe49a20cf9c0bc7fc3
:git: https://github.com/dtsbourg/JSQMessagesViewController
SocketRocket:
:commit: d0585af165
Expand Down
Loading

0 comments on commit 0b6f683

Please sign in to comment.