@@ -0,0 +1,12 @@ | |||
Package: com.yaypixxo.kage | |||
Name: Kage | |||
Depends: mobilesubstrate, preferenceloader | |||
Architecture: iphoneos-arm | |||
Description: show/hide/change ls and hs stuff! | |||
Depiction: https://yaypixxo.com/depictions?p=com.yaypixxo.kage | |||
SileoDepiction: https://yaypixxo.com/sileo/com.yaypixxo.kage | |||
Maintainer: YaYPIXXO <viggo@lekdorf.com> | |||
Author: YaYPIXXO <viggo@lekdorf.com> | |||
Section: Tweaks | |||
Version: 1.0.0-1+debug | |||
Installed-Size: 284 |
@@ -0,0 +1 @@ | |||
{ Filter = { Bundles = ( "com.apple.springboard" ); }; } |
@@ -0,0 +1,24 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleExecutable</key> | |||
<string>kageprefs</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.yaypixxo.kageprefs</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>BNDL</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0.0</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleVersion</key> | |||
<string>1.0</string> | |||
<key>NSPrincipalClass</key> | |||
<string>KgeRootListController</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,87 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>items</key> | |||
<array> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Kage - by YaYPIXXO</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>enabled</string> | |||
<key>label</key> | |||
<string>Enable Tweak</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>hide3dDivs</string> | |||
<key>label</key> | |||
<string>Hide 3D Touch Dividers</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>gridSwitcher</string> | |||
<key>label</key> | |||
<string>Enable Grid Switcher</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>hideLSBatt</string> | |||
<key>label</key> | |||
<string>Hide LS Battery</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>statusBarShowTimeLS</string> | |||
<key>label</key> | |||
<string>Time in LS Status Bar</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
</array> | |||
<key>title</key> | |||
<string>Kage</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,21 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>entry</key> | |||
<dict> | |||
<key>bundle</key> | |||
<string>kageprefs</string> | |||
<key>cell</key> | |||
<string>PSLinkCell</string> | |||
<key>detail</key> | |||
<string>KgeRootListController</string> | |||
<key>icon</key> | |||
<string>icon.png</string> | |||
<key>isController</key> | |||
<true/> | |||
<key>label</key> | |||
<string>Kage</string> | |||
</dict> | |||
</dict> | |||
</plist> |
@@ -0,0 +1 @@ | |||
./packages/com.yaypixxo.kage_1.0.0-1+debug_iphoneos-arm.deb |
@@ -0,0 +1,20 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.apple.xcode.dsym.Kage.dylib</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>dSYM</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0</string> | |||
<key>CFBundleVersion</key> | |||
<string>1</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,21 @@ | |||
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64/KgeRootListController.m.6665583a.o: \ | |||
KgeRootListController.m /Users/yaypixxo/theos/Prefix.pch \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h KgeRootListController.h \ | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h \ | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h | |||
/Users/yaypixxo/theos/Prefix.pch: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h: | |||
KgeRootListController.h: | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h: | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h: |
@@ -0,0 +1,17 @@ | |||
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64/Tweak.x.cb862df1.o: \ | |||
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64/Tweak.x.m \ | |||
/Users/yaypixxo/theos/Prefix.pch \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h \ | |||
/Users/yaypixxo/theos/vendor/include/substrate.h | |||
/Users/yaypixxo/theos/Prefix.pch: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h: | |||
/Users/yaypixxo/theos/vendor/include/substrate.h: |
@@ -0,0 +1,20 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.apple.xcode.dsym.kageprefs</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>dSYM</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0</string> | |||
<key>CFBundleVersion</key> | |||
<string>1</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,20 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.apple.xcode.dsym.Kage.dylib</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>dSYM</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0</string> | |||
<key>CFBundleVersion</key> | |||
<string>1</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,21 @@ | |||
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64e/KgeRootListController.m.7e6d29a3.o: \ | |||
KgeRootListController.m /Users/yaypixxo/theos/Prefix.pch \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h KgeRootListController.h \ | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h \ | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h | |||
/Users/yaypixxo/theos/Prefix.pch: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h: | |||
KgeRootListController.h: | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h: | |||
/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h: |
@@ -0,0 +1,17 @@ | |||
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64e/Tweak.x.fc246e88.o: \ | |||
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64e/Tweak.x.m \ | |||
/Users/yaypixxo/theos/Prefix.pch \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h \ | |||
/Users/yaypixxo/theos/vendor/include/substrate.h | |||
/Users/yaypixxo/theos/Prefix.pch: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/yaypixxo/theos/vendor/include/HBLog.h: | |||
/Users/yaypixxo/theos/vendor/include/substrate.h: |
@@ -0,0 +1,20 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.apple.xcode.dsym.kageprefs</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>dSYM</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0</string> | |||
<key>CFBundleVersion</key> | |||
<string>1</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,24 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleExecutable</key> | |||
<string>kageprefs</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.yaypixxo.kageprefs</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>BNDL</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0.0</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleVersion</key> | |||
<string>1.0</string> | |||
<key>NSPrincipalClass</key> | |||
<string>KgeRootListController</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,87 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>items</key> | |||
<array> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Kage - by YaYPIXXO</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>enabled</string> | |||
<key>label</key> | |||
<string>Enable Tweak</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>hide3dDivs</string> | |||
<key>label</key> | |||
<string>Hide 3D Touch Dividers</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>gridSwitcher</string> | |||
<key>label</key> | |||
<string>Enable Grid Switcher</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>hideLSBatt</string> | |||
<key>label</key> | |||
<string>Hide LS Battery</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>statusBarShowTimeLS</string> | |||
<key>label</key> | |||
<string>Time in LS Status Bar</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
</array> | |||
<key>title</key> | |||
<string>Kage</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1 @@ | |||
1 |
@@ -0,0 +1 @@ | |||
{ Filter = { Bundles = ( "com.apple.springboard" ); }; } |
@@ -0,0 +1,15 @@ | |||
ARCHS = arm64 arm64e | |||
TARGET = iphone:clang:11.2:11.2 | |||
INSTALL_TARGET_PROCESSES = SpringBoard | |||
include $(THEOS)/makefiles/common.mk | |||
TWEAK_NAME = Kage | |||
Kage_FILES = Tweak.x | |||
Kage_CFLAGS = -fobjc-arc | |||
include $(THEOS_MAKE_PATH)/tweak.mk | |||
SUBPROJECTS += kageprefs | |||
include $(THEOS_MAKE_PATH)/aggregate.mk |
@@ -0,0 +1,5 @@ | |||
# Kage | |||
Kage means cake in Danish | |||
I really like cake | |||
anyway, this tweak has a bunch of settings for hiding and showing stuff on the LS and HS. |
@@ -0,0 +1,144 @@ | |||
// respring function | |||
@interface FBSystemService : NSObject | |||
+(id)sharedInstance; | |||
-(void)exitAndRelaunch:(bool)arg1; | |||
@end | |||
static void RespringDevice() { | |||
[[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES]; | |||
} | |||
// prefs | |||
@interface NSUserDefaults (KagePrefs) | |||
-(id)objectForKey:(NSString *)key inDomain:(NSString *)domain; | |||
-(void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain; | |||
@end | |||
static NSString *nsDomainString = @"com.yaypixxo.kage"; | |||
static NSString *nsNotificationString = @"com.yaypixxo.kage/preferences.changed"; | |||
static BOOL enabled; | |||
static BOOL hide3dDivs; | |||
static BOOL gridSwitcher; | |||
static BOOL hideLSBatt; | |||
static BOOL statusBarShowTimeLS; | |||
static void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) { | |||
NSNumber *eEnabled = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"enabled" inDomain:nsDomainString]; | |||
NSNumber *eHide3dDivs = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hide3dDivs" inDomain:nsDomainString]; | |||
NSNumber *eGridSwitcher = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"gridSwitcher" inDomain:nsDomainString]; | |||
NSNumber *eHideLSBatt = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLSBatt" inDomain:nsDomainString]; | |||
NSNumber *eStatusBarShowTimeLS = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"statusBarShowTimeLS" inDomain:nsDomainString]; | |||
enabled = (eEnabled) ? [eEnabled boolValue]:NO; | |||
hide3dDivs = (eHide3dDivs) ? [eHide3dDivs boolValue]:NO; | |||
gridSwitcher = (eGridSwitcher) ? [eGridSwitcher boolValue]:NO; | |||
hideLSBatt = (eHideLSBatt) ? [eHideLSBatt boolValue]:NO; | |||
statusBarShowTimeLS = (eStatusBarShowTimeLS) ? [eStatusBarShowTimeLS boolValue]:NO; | |||
} | |||
// hooks and stuff | |||
#import <UIKit/UIKit.h> | |||
// 3D TOUCH DIVS START // | |||
%hook SBUIActionKeylineView | |||
- (void)didMoveToSuperview { | |||
if (enabled && hide3dDivs) { | |||
} | |||
else { | |||
%orig; | |||
} | |||
} | |||
%end | |||
%hook _UIInterfaceActionBlankSeparatorView | |||
- (void)setConstantAxisDimension:(double)arg1 { | |||
if (enabled && hide3dDivs) { | |||
} | |||
else { | |||
%orig; | |||
} | |||
} | |||
%end | |||
// 3D TOUCH DIVS END // | |||
// GRID SWITCHER START // | |||
%hook SBAppSwitcherSettings | |||
- (void)setGridSwitcherPageScale:(double)arg1 { | |||
if (enabled && gridSwitcher) { | |||
arg1 = 0.4; | |||
} | |||
%orig; | |||
} | |||
- (void)setGridSwitcherHorizontalInterpageSpacingPortrait:(double)arg1 { | |||
if (enabled && gridSwitcher) { | |||
arg1 = 25.5; | |||
} | |||
%orig; | |||
} | |||
- (void)setGridSwitcherHorizontalInterpageSpacingLandscape:(double)arg1 { | |||
if (enabled && gridSwitcher) { | |||
arg1 = 11.6; | |||
} | |||
%orig; | |||
} | |||
- (void)setGridSwitcherVerticalNaturalSpacingPortrait:(double)arg1 { | |||
if (enabled && gridSwitcher) { | |||
arg1 = 42; | |||
} | |||
%orig; | |||
} | |||
- (void)setGridSwitcherVerticalNaturalSpacingLandscape:(double)arg1 { | |||
if (enabled && gridSwitcher) { | |||
arg1 = 38; | |||
} | |||
%orig; | |||
} | |||
- (void)setSwitcherStyle:(long long)arg1 { | |||
if (enabled && gridSwitcher) { | |||
arg1 = 2; | |||
} | |||
%orig; | |||
} | |||
%end | |||
// GRID SWITCHER END // | |||
// NO LS BATTERY START // | |||
%hook CSCoverSheetViewController | |||
- (void)_transitionChargingViewToVisible:(bool)arg1 showBattery:(bool)arg2 animated:(bool)arg3 { | |||
if (enabled && hideLSBatt) { | |||
arg1 = 0; | |||
} | |||
%orig; | |||
} | |||
%end | |||
// NO LS BATTERY END // | |||
// SHOW TIME IN LS STATUSBAR START // | |||
%hook CSCoverSheetViewController | |||
- (bool)shouldShowLockStatusBarTime { | |||
if (enabled && statusBarShowTimeLS) { | |||
return 1; | |||
} | |||
else { | |||
return %orig; | |||
} | |||
} | |||
%end | |||
// SHOW TIME IN LS STATUSBAR END // | |||
%ctor { | |||
// prefs changed listener | |||
notificationCallback(NULL, NULL, NULL, NULL, NULL); | |||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce); | |||
// respring listener | |||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.kage/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately); | |||
} |
@@ -0,0 +1,11 @@ | |||
Package: com.yaypixxo.kage | |||
Name: Kage | |||
Depends: mobilesubstrate, preferenceloader | |||
Version: 1.0.0 | |||
Architecture: iphoneos-arm | |||
Description: show/hide/change ls and hs stuff! | |||
Depiction: https://yaypixxo.com/depictions?p=com.yaypixxo.kage | |||
SileoDepiction: https://yaypixxo.com/sileo/com.yaypixxo.kage | |||
Maintainer: YaYPIXXO <viggo@lekdorf.com> | |||
Author: YaYPIXXO <viggo@lekdorf.com> | |||
Section: Tweaks |
@@ -0,0 +1,5 @@ | |||
#import <Preferences/PSListController.h> | |||
@interface KgeRootListController : PSListController | |||
@end |
@@ -0,0 +1,22 @@ | |||
#include "KgeRootListController.h" | |||
@implementation KgeRootListController | |||
- (NSArray *)specifiers { | |||
if (!_specifiers) { | |||
_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self]; | |||
} | |||
return _specifiers; | |||
} | |||
-(void)voidView { | |||
[super loadView]; | |||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Respring" style:UIBarButtonItemStylePlain target:self action:@selector(saveTapped)]; | |||
} | |||
-(void)saveTapped { | |||
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.kage/respring"), NULL, NULL, YES); | |||
} | |||
@end |
@@ -0,0 +1,18 @@ | |||
ARCHS = arm64 arm64e | |||
TARGET = iphone:clang:11.2:11.2 | |||
include $(THEOS)/makefiles/common.mk | |||
BUNDLE_NAME = kageprefs | |||
kageprefs_FILES = KgeRootListController.m | |||
kageprefs_INSTALL_PATH = /Library/PreferenceBundles | |||
kageprefs_FRAMEWORKS = UIKit | |||
kageprefs_PRIVATE_FRAMEWORKS = Preferences | |||
kageprefs_CFLAGS = -fobjc-arc | |||
include $(THEOS_MAKE_PATH)/bundle.mk | |||
internal-stage:: | |||
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END) | |||
$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/kageprefs.plist$(ECHO_END) |
@@ -0,0 +1,24 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleExecutable</key> | |||
<string>kageprefs</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.yaypixxo.kageprefs</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>BNDL</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0.0</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleVersion</key> | |||
<string>1.0</string> | |||
<key>NSPrincipalClass</key> | |||
<string>KgeRootListController</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,87 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>items</key> | |||
<array> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Kage - by YaYPIXXO</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>enabled</string> | |||
<key>label</key> | |||
<string>Enable Tweak</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>hide3dDivs</string> | |||
<key>label</key> | |||
<string>Hide 3D Touch Dividers</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>gridSwitcher</string> | |||
<key>label</key> | |||
<string>Enable Grid Switcher</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>hideLSBatt</string> | |||
<key>label</key> | |||
<string>Hide LS Battery</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>com.yaypixxo.kage</string> | |||
<key>key</key> | |||
<string>statusBarShowTimeLS</string> | |||
<key>label</key> | |||
<string>Time in LS Status Bar</string> | |||
<key>PostNotification</key> | |||
<string>com.yaypixxo.kage/preferences.changed</string> | |||
</dict> | |||
</array> | |||
<key>title</key> | |||
<string>Kage</string> | |||
</dict> | |||
</plist> |
@@ -0,0 +1,21 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>entry</key> | |||
<dict> | |||
<key>bundle</key> | |||
<string>kageprefs</string> | |||
<key>cell</key> | |||
<string>PSLinkCell</string> | |||
<key>detail</key> | |||
<string>KgeRootListController</string> | |||
<key>icon</key> | |||
<string>icon.png</string> | |||
<key>isController</key> | |||
<true/> | |||
<key>label</key> | |||
<string>Kage</string> | |||
</dict> | |||
</dict> | |||
</plist> |