Apply more contact share assets.

This commit is contained in:
Matthew Chen 2018-05-09 14:56:11 -04:00
parent b7946fa904
commit 4079cdb600
23 changed files with 122 additions and 10 deletions

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "person_outline_24@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "person_outline_24@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "person_outline_24@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "checkbox_checked@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "checkbox_checked@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "checkbox_checked@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "checkbox_unchecked@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "checkbox_unchecked@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "checkbox_unchecked@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "chevron_left_16@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "chevron_left_16@3x-1.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "chevron_left_16@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "chevron_right_16@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "chevron_right_16@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "chevron_right_16@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

View File

@ -218,8 +218,7 @@ NS_ASSUME_NONNULL_BEGIN
[labelsView addArrangedSubview:bottomLabel];
}
UIImage *disclosureImage =
[UIImage imageNamed:(self.isRTL ? @"system_disclosure_indicator_rtl" : @"system_disclosure_indicator")];
UIImage *disclosureImage = [UIImage imageNamed:(self.isRTL ? @"small_chevron_left" : @"small_chevron_right")];
OWSAssert(disclosureImage);
UIImageView *disclosureImageView = [UIImageView new];
disclosureImageView.image = [disclosureImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];

View File

@ -3696,8 +3696,7 @@ typedef enum : NSUInteger {
handler:^(UIAlertAction *_Nonnull action) {
[self chooseContactForSending];
}];
// TODO - proper image
UIImage *chooseContactImage = [UIImage imageNamed:@"actionsheet_camera_black"];
UIImage *chooseContactImage = [UIImage imageNamed:@"actionsheet_contact"];
OWSAssert(takeMediaImage);
[chooseContactAction setValue:chooseContactImage forKey:@"image"];
[actionSheetController addAction:chooseContactAction];

View File

@ -145,12 +145,11 @@ class ContactShareFieldView: UIStackView {
let checkbox = UIButton(type: .custom)
self.checkbox = checkbox
// TODO: Use real assets.
checkbox.setTitle("", for: .normal)
checkbox.setTitle("", for: .selected)
checkbox.setTitleColor(UIColor.black, for: .normal)
checkbox.setTitleColor(UIColor.black, for: .selected)
checkbox.titleLabel?.font = UIFont.ows_dynamicTypeBody
let checkedIcon = #imageLiteral(resourceName: "contact_checkbox_checked")
let uncheckedIcon = #imageLiteral(resourceName: "contact_checkbox_unchecked")
checkbox.setImage(uncheckedIcon, for: .normal)
checkbox.setImage(checkedIcon, for: .selected)
checkbox.isSelected = field.isIncluded()
// Disable the checkbox; the entire row is hot.
checkbox.isUserInteractionEnabled = false