Browse Source

Use vectors instead of PNGs

pull/68/head
Niels Andriesse 3 years ago
parent
commit
8999462776
  1. BIN
      Signal/Images.xcassets/Loki V2/AddPerson.imageset/AddPerson.pdf
  2. 12
      Signal/Images.xcassets/Loki V2/AddPerson.imageset/Contents.json
  3. BIN
      Signal/Images.xcassets/Loki V2/Check.imageset/Check.pdf
  4. 12
      Signal/Images.xcassets/Loki V2/Check.imageset/Contents.json
  5. BIN
      Signal/Images.xcassets/Loki V2/CircleCheck.imageset/CircleCheck.pdf
  6. 12
      Signal/Images.xcassets/Loki V2/CircleCheck.imageset/Contents.json
  7. BIN
      Signal/Images.xcassets/Loki V2/CircleDotDotDot.imageset/CircleDotDotDot.pdf
  8. 12
      Signal/Images.xcassets/Loki V2/CircleDotDotDot.imageset/Contents.json
  9. BIN
      Signal/Images.xcassets/Loki V2/CirclePlus.imageset/CirclePlus.pdf
  10. 12
      Signal/Images.xcassets/Loki V2/CirclePlus.imageset/Contents.json
  11. BIN
      Signal/Images.xcassets/Loki V2/Contacts.imageset/Contacts@1x.png
  12. BIN
      Signal/Images.xcassets/Loki V2/Contacts.imageset/Contacts@2x.png
  13. 22
      Signal/Images.xcassets/Loki V2/Contacts.imageset/Contents.json
  14. 12
      Signal/Images.xcassets/Loki V2/FilledCircleCheck.imageset/Contents.json
  15. BIN
      Signal/Images.xcassets/Loki V2/FilledCircleCheck.imageset/FilledCircleCheck.pdf
  16. 12
      Signal/Images.xcassets/Loki V2/Gear.imageset/Contents.json
  17. BIN
      Signal/Images.xcassets/Loki V2/Gear.imageset/Gear.pdf
  18. 12
      Signal/Images.xcassets/Loki V2/Globe.imageset/Contents.json
  19. BIN
      Signal/Images.xcassets/Loki V2/Globe.imageset/Globe.pdf
  20. BIN
      Signal/Images.xcassets/Loki V2/Globe.imageset/Globe@1x.png
  21. BIN
      Signal/Images.xcassets/Loki V2/Globe.imageset/Globe@2x.png
  22. 12
      Signal/Images.xcassets/Loki V2/MagnifyingGlass.imageset/Contents.json
  23. BIN
      Signal/Images.xcassets/Loki V2/MagnifyingGlass.imageset/MagnifyingGlass.pdf
  24. 12
      Signal/Images.xcassets/Loki V2/Microphone.imageset/Contents.json
  25. BIN
      Signal/Images.xcassets/Loki V2/Microphone.imageset/Microphone.pdf
  26. 12
      Signal/Images.xcassets/Loki V2/People.imageset/Contents.json
  27. BIN
      Signal/Images.xcassets/Loki V2/People.imageset/People.pdf
  28. 12
      Signal/Images.xcassets/Loki V2/QRCodeFilled.imageset/Contents.json
  29. BIN
      Signal/Images.xcassets/Loki V2/QRCodeFilled.imageset/QRCodeFilled.pdf
  30. 12
      Signal/Images.xcassets/Loki V2/StarOutline.imageset/Contents.json
  31. BIN
      Signal/Images.xcassets/Loki V2/StarOutline.imageset/StarOutline.pdf
  32. 22
      Signal/Images.xcassets/Loki V2/TickFilled.imageset/Contents.json
  33. BIN
      Signal/Images.xcassets/Loki V2/TickFilled.imageset/TickFilled@1x.png
  34. BIN
      Signal/Images.xcassets/Loki V2/TickFilled.imageset/TickFilled@2x.png
  35. 22
      Signal/Images.xcassets/Loki V2/TickOutline.imageset/Contents.json
  36. BIN
      Signal/Images.xcassets/Loki V2/TickOutline.imageset/TickOutline@1x.png
  37. BIN
      Signal/Images.xcassets/Loki V2/TickOutline.imageset/TickOutline@2x.png
  38. 12
      Signal/Images.xcassets/Loki V2/X.imageset/Contents.json
  39. BIN
      Signal/Images.xcassets/Loki V2/X.imageset/X.pdf
  40. 6
      Signal/src/Loki/ConversationCell.swift
  41. 2
      Signal/src/Loki/HomeVC.swift

BIN
Signal/Images.xcassets/Loki V2/AddPerson.imageset/AddPerson.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/AddPerson.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "AddPerson.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/Check.imageset/Check.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/Check.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Check.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/CircleCheck.imageset/CircleCheck.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/CircleCheck.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "CircleCheck.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/CircleDotDotDot.imageset/CircleDotDotDot.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/CircleDotDotDot.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "CircleDotDotDot.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/CirclePlus.imageset/CirclePlus.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/CirclePlus.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "CirclePlus.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/Contacts.imageset/Contacts@1x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

BIN
Signal/Images.xcassets/Loki V2/Contacts.imageset/Contacts@2x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

22
Signal/Images.xcassets/Loki V2/Contacts.imageset/Contents.json vendored

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

12
Signal/Images.xcassets/Loki V2/FilledCircleCheck.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "FilledCircleCheck.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/FilledCircleCheck.imageset/FilledCircleCheck.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/Gear.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Gear.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/Gear.imageset/Gear.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/Globe.imageset/Contents.json vendored

@ -2,17 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "Globe@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "Globe@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
"filename" : "Globe.pdf"
}
],
"info" : {

BIN
Signal/Images.xcassets/Loki V2/Globe.imageset/Globe.pdf vendored

Binary file not shown.

BIN
Signal/Images.xcassets/Loki V2/Globe.imageset/Globe@1x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

BIN
Signal/Images.xcassets/Loki V2/Globe.imageset/Globe@2x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

12
Signal/Images.xcassets/Loki V2/MagnifyingGlass.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "MagnifyingGlass.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/MagnifyingGlass.imageset/MagnifyingGlass.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/Microphone.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Microphone.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/Microphone.imageset/Microphone.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/People.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "People.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/People.imageset/People.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/QRCodeFilled.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "QRCodeFilled.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/QRCodeFilled.imageset/QRCodeFilled.pdf vendored

Binary file not shown.

12
Signal/Images.xcassets/Loki V2/StarOutline.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "StarOutline.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/StarOutline.imageset/StarOutline.pdf vendored

Binary file not shown.

22
Signal/Images.xcassets/Loki V2/TickFilled.imageset/Contents.json vendored

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

BIN
Signal/Images.xcassets/Loki V2/TickFilled.imageset/TickFilled@1x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

BIN
Signal/Images.xcassets/Loki V2/TickFilled.imageset/TickFilled@2x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 464 B

22
Signal/Images.xcassets/Loki V2/TickOutline.imageset/Contents.json vendored

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

BIN
Signal/Images.xcassets/Loki V2/TickOutline.imageset/TickOutline@1x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 B

BIN
Signal/Images.xcassets/Loki V2/TickOutline.imageset/TickOutline@2x.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 571 B

12
Signal/Images.xcassets/Loki V2/X.imageset/Contents.json vendored

@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "X.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
Signal/Images.xcassets/Loki V2/X.imageset/X.pdf vendored

Binary file not shown.

6
Signal/src/Loki/ConversationCell.swift

@ -142,9 +142,9 @@ final class ConversationCell : UITableViewCell {
let image: UIImage
let status = MessageRecipientStatusUtils.recipientStatus(outgoingMessage: lastMessage)
switch status {
case .calculatingPoW, .uploading, .sending: image = #imageLiteral(resourceName: "Cog")
case .sent, .skipped, .delivered: image = #imageLiteral(resourceName: "TickOutline")
case .read: image = #imageLiteral(resourceName: "TickFilled")
case .calculatingPoW, .uploading, .sending: image = #imageLiteral(resourceName: "CircleDotDotDot")
case .sent, .skipped, .delivered: image = #imageLiteral(resourceName: "CircleCheck")
case .read: image = #imageLiteral(resourceName: "FilledCircleCheck")
case .failed: image = #imageLiteral(resourceName: "message_status_failed")
}
statusIndicatorView.image = image

2
Signal/src/Loki/HomeVC.swift

@ -192,7 +192,7 @@ final class HomeVC : UIViewController, UITableViewDataSource, UITableViewDelegat
profilePictureView.set(.height, to: profilePictureSize)
profilePictureView.onTap = { [weak self] in self?.openSettings() }
navigationItem.leftBarButtonItem = UIBarButtonItem(customView: profilePictureView)
let createPrivateGroupChatButton = UIBarButtonItem(image: #imageLiteral(resourceName: "Contacts"), style: .plain, target: self, action: #selector(createPrivateGroupChat))
let createPrivateGroupChatButton = UIBarButtonItem(image: #imageLiteral(resourceName: "People"), style: .plain, target: self, action: #selector(createPrivateGroupChat))
createPrivateGroupChatButton.tintColor = Colors.text
let joinPublicChatButton = UIBarButtonItem(image: #imageLiteral(resourceName: "Globe"), style: .plain, target: self, action: #selector(joinPublicChat))
joinPublicChatButton.tintColor = Colors.text

Loading…
Cancel
Save