This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%hook SpringBoard | |
// Honestly this is a bad hack just to get it functional (with not too much overhead). | |
// This could be done with a notification listener instead. | |
- (BOOL)isShowingHomescreen | |
{ | |
[HPManager updateCacheForLocation:@"SBIconLocationRoot"]; | |
[HPManager updateCacheForLocation:@"SBIconLocationDock"]; | |
return %orig; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0deg)!important;-moz-transform:rotate(0deg)!important;transform:rotate(0deg)!important}to{-webkit-transform:rotate(360deg)!important;-moz-transform:rotate(360deg)!important;transform:rotate(360deg)!important}}@-moz-keyframes rotate{0%{-webkit-transform:rotate(0deg)!important;-moz-transform:rotate(0deg)!important;transform:rotate(0deg)!important}to{-webkit-transform:rotate(360deg)!important;-moz-transform:rotate(360deg)!important;transform:rotate(360deg)!important}}@-o-keyframes rotate{0%{-webkit-transform:rotate(0deg)!important;-moz-transform:rotate(0deg)!important;transform:rotate(0deg)!important}to{-webkit-transform:rotate(360deg)!important;-moz-transform:rotate(360deg)!important;transform:rotate(360deg)!important}}@keyframes rotate{0%{-webkit-transform:rotate(0deg)!important;-moz-transform:rotate(0deg)!important;transform:rotate(0deg)!important}to{-webkit-transform:rotate(360deg)!important;-moz-transform:rotate(360deg)!important;transform:rotate(360deg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HPConfiguration.m | |
// HomePlus | |
// | |
// This class should serve as a paste-in for NSUserDefaults | |
// Which is why some of these methods may seem completely unneeded. | |
// | |
// | |
#include "HPConfiguration.h" | |
#include "../Utility/HPUtility.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "HomePlus.h" | |
#include "HomePlusEditor.h" | |
@interface SBIconListView (MainLayout13) | |
@property (nonatomic, assign) NSInteger iconsInRowForSpacingCalculation; | |
@property (nonatomic, assign) CGSize alignmentIconSize; | |
@property (nonatomic, assign) NSInteger firstFreeSlotIndex; | |
@property (nonatomic, retain) SBIconListFlowLayout *homeplus_layout; | |
- (NSUInteger)iconRowsForCurrentOrientation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
import re | |
import os | |
import sys | |
import ninja_syntax | |
logos = ['boof.xm', 'Blah.x'] | |
files = ['foo.mm', 'de.m'] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static BOOL _pfTweakEnabled = YES; | |
NSDictionary *prefs = nil; | |
< Your Tweak Code Here > | |
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
// | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iOS 13 Code to Modify HomeScreen layout without performance/api overhead | |
#include "HomePlus.h" | |
#include "HomePlusEditor.h" | |
@interface SBIconListView (MainLayout13) | |
- (NSUInteger)iconRowsForCurrentOrientation; | |
@end | |
@interface SBIconListFlowLayout (MainLayout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/xpc /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/xpc | |
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/launch.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/launch.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static UIView *debugView; | |
static UILabel *debugLabel; | |
void KRSLog(NSString *log) | |
{ | |
if (debugLabel) [debugLabel setText:log]; | |
} | |
%hook UISystemGestureView | |
-(void)layoutSubviews | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%hook SBIconListView | |
- (struct CGPoint)originForIconAtCoordinate:(SBIconCoordinate)arg1 metrics:(struct SBIconListLayoutMetrics)arg2 | |
{ | |
// Get our original point for the current icon | |
CGPoint o = %orig(arg1, arg2); | |
if (!([self.iconLocation containsString:@"Root"]) && !_pfChangeFolderLayout) return o; | |
// Get ourselves the info on the first icon for maths | |
struct SBIconCoordinate first; |