Pārlūkot izejas kodu

Get Apollo eye from SF Symbols if available

master
lint pirms 4 gadiem
vecāks
revīzija
854d525272
1 mainītis faili ar 13 papildinājumiem un 1 dzēšanām
  1. +13
    -1
      tweak/Apollo.xm

+ 13
- 1
tweak/Apollo.xm Parādīt failu

@@ -74,7 +74,19 @@ id apolloCommentController;
UIImageView *prevCellImageView = MSHookIvar<UIImageView *>(prevCell, "iconImageView");
CGSize prevImageSize = [[prevCellImageView image] size];
UIImage *undeleteImage = [UIImage imageWithContentsOfFile:@"/var/mobile/Library/Application Support/TFDidThatSay/eye160dark.png"];
UIImage *undeleteImage;
if (@available(iOS 13.0, *)){
undeleteImage = [UIImage systemImageNamed:@"eye"];
if (!undeleteImage){
undeleteImage = [UIImage imageWithContentsOfFile:@"/var/mobile/Library/Application Support/TFDidThatSay/eye160dark.png"];
}
} else {
undeleteImage = [UIImage imageWithContentsOfFile:@"/var/mobile/Library/Application Support/TFDidThatSay/eye160dark.png"];
}
CGFloat undeleteImageSizeValue = prevImageSize.width > prevImageSize.height ? prevImageSize.width : prevImageSize.height;
if (undeleteImageSizeValue == 0){

Notiek ielāde…
Atcelt
Saglabāt