Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 18417edbde
commit 3fba101421

@ -1,26 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_hourglass_empty.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_hourglass_empty@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_hourglass_empty@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

@ -1,26 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_hourglass_full.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_hourglass_full@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_hourglass_full@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 B

@ -395,9 +395,11 @@ NS_ASSUME_NONNULL_BEGIN
OWSMessageFooterView *footerView = self.footerView;
[footerView configureWithConversationViewItem:self.viewItem];
if (textStackView) {
// Display footer below text.
[textStackView addArrangedSubview:self.footerView];
[self.footerView setHasShadows:NO viewItem:self.viewItem];
} else if (bodyMediaView) {
// Display footer over media.
[bodyMediaView addSubview:footerView];
bodyMediaView.layoutMargins = UIEdgeInsetsZero;
@ -408,7 +410,6 @@ NS_ASSUME_NONNULL_BEGIN
]];
[self.footerView setHasShadows:YES viewItem:self.viewItem];
} else {
// Display footer over media.
OWSFail(@"%@ could not display footer.", self.logTag);
}

@ -43,18 +43,22 @@ NS_ASSUME_NONNULL_BEGIN
self.timestampLabel = [UILabel new];
// TODO: Color
self.timestampLabel.textColor = [UIColor lightGrayColor];
[self addArrangedSubview:self.timestampLabel];
self.spacerView = [UIView new];
[self.spacerView setContentHuggingLow];
[self addArrangedSubview:self.spacerView];
self.statusLabel = [UILabel new];
// TODO: Color
self.statusLabel.textColor = [UIColor lightGrayColor];
[self addArrangedSubview:self.statusLabel];
self.statusIndicatorView = [UIView new];
[self.statusIndicatorView autoSetDimension:ALDimensionWidth toSize:self.statusIndicatorSize];
[self.statusIndicatorView autoSetDimension:ALDimensionHeight toSize:self.statusIndicatorSize];
self.statusIndicatorView.layer.cornerRadius = self.statusIndicatorSize * 0.5f;
[self addArrangedSubview:self.statusIndicatorView];
}
- (void)configureFonts
@ -86,20 +90,13 @@ NS_ASSUME_NONNULL_BEGIN
// TODO:
self.statusIndicatorView.backgroundColor = [UIColor orangeColor];
BOOL isOutgoing = (viewItem.interaction.interactionType == OWSInteractionType_OutgoingMessage);
for (UIView *subview in @[
self.timestampLabel,
self.spacerView,
self.statusLabel,
self.statusIndicatorView,
]) {
[subview removeFromSuperview];
}
if (viewItem.interaction.interactionType == OWSInteractionType_OutgoingMessage) {
[self addArrangedSubview:self.timestampLabel];
[self addArrangedSubview:self.spacerView];
[self addArrangedSubview:self.statusLabel];
[self addArrangedSubview:self.statusIndicatorView];
} else {
[self addArrangedSubview:self.timestampLabel];
subview.hidden = !isOutgoing;
}
}

Loading…
Cancel
Save