Added UIRequiresFullScreen for iPad
Only force full navigation bar height on iPhone
The Virtual mouse preference can now be set by the toggle button
Use UIColor.whiteColor instead of RGB 255/255
Use arm64e-supported fishhook fork
This commit is contained in:
khanhduytran0 committed 2022-07-29 13:27:18 +07:00
1 parent 2d5b0e5c01
commit ce292d518a
6 files changed
+14 -6

No files matched your search

+2 -1
View File
@@ -3,7 +3,8 @@
url = https://github.com/immago/DBNumberedSlider
[submodule "Natives/external/fishhook"]
path = Natives/external/fishhook
url = https://github.com/facebook/fishhook
url = https://github.com/khanhduytran0/fishhook
branch = jev/main
[submodule "Natives/external/AFNetworking"]
path = Natives/external/AFNetworking
url = https://github.com/AFNetworking/AFNetworking
+2
View File
@@ -92,6 +92,8 @@
<string>arm64</string>
<string>metal</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
+7 -3
View File
@@ -110,7 +110,7 @@
[button_faq addTarget:self action:@selector(showFAQ) forControlEvents:UIControlEventTouchUpInside];
if(@available (iOS 13.0, *)) {
button_faq.imageView.image = [[UIImage systemImageNamed:@"doc.text"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[button_faq setTintColor:[UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0]];
[button_faq setTintColor:UIColor.whiteColor];
[button_faq setImage:button_faq.imageView.image forState:UIControlStateNormal];
}
[scrollView addSubview:button_faq];
@@ -144,7 +144,7 @@
}
if(@available (iOS 13.0, *)) {
button_login.imageView.image = [[UIImage systemImageNamed:@"person.crop.circle.badge.plus"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[button_login setTintColor:[UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0]];
[button_login setTintColor:UIColor.whiteColor];
[button_login setImage:button_login.imageView.image forState:UIControlStateNormal];
}
[scrollView addSubview:button_login];
@@ -166,7 +166,7 @@
[button_accounts addTarget:self action:@selector(loginAccount:) forControlEvents:UIControlEventTouchUpInside];
if(@available (iOS 13.0, *)) {
button_accounts.imageView.image = [[UIImage systemImageNamed:@"person.crop.circle"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[button_accounts setTintColor:[UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0]];
[button_accounts setTintColor:UIColor.whiteColor];
[button_accounts setImage:button_accounts.imageView.image forState:UIControlStateNormal];
}
[scrollView addSubview:button_accounts];
@@ -182,6 +182,10 @@
}
}
- (void)viewWillAppear:(BOOL)animated {
viewController = self;
}
- (void)displayProgress:(NSString *)title {
self.title = title;
UIActivityIndicatorViewStyle style;
+1
View File
@@ -876,6 +876,7 @@ int currentVisibility = 1;
if (!isGrabbing && !held) {
virtualMouseEnabled = !virtualMouseEnabled;
self.mousePointerView.hidden = !virtualMouseEnabled;
setPreference(@"virtmouse_enable", @(virtualMouseEnabled));
}
break;
+1 -1
View File
@@ -11,7 +11,7 @@
// This forces the navigation bar to keep its height (44dp) in landscape
@implementation UINavigationBar(forceFullHeightInLandscape)
- (BOOL)forceFullHeightInLandscape {
return YES;
return UIScreen.mainScreen.traitCollection.userInterfaceIdiom == UIUserInterfaceIdiomPhone;
}
@end