-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTweak.x
40 lines (31 loc) · 925 Bytes
/
Tweak.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import <UIKit/UIKit.h>
#import "CCUIVPNSettings.h"
#import "CCUISSHSettings.h"
%hook CCUIRecordScreenShortcut
+ (BOOL)isInternalButton {
return NO;
}
- (UIImage *)glyphImageForState:(UIControlState)state {
return [UIImage imageWithContentsOfFile:@"/Applications/Camera.app/RecordVideo-OrbHW"];
}
%end
%hook CCUIControlCenterSettingsSectionSettings
+ (NSArray<Class> *)buttonModuleClasses {
NSArray<Class> *originalButtons = %orig;
/* original array
AirplaneMode
WiFi
Bluetooth
DoNotDisturb
Mute
OrientationLock
LowPowerMode
CellularData
PersonalHotspot
*/
Class WifiToggle = originalButtons[1];
Class BluetoothToggle = originalButtons[2];
Class OrientationLockToggle = originalButtons[5];
return @[WifiToggle, BluetoothToggle, [CCUISSHSettings class], [CCUIVPNSettings class], OrientationLockToggle];
}
%end