.theos/* |
Package: com.burritoz.testing | |||||
Package: com.burritoz.dockify | |||||
Name: Dockify | Name: Dockify | ||||
Depends: mobilesubstrate, preferenceloader, com.saurik.substrate.safemode, ws.hbang.common (>=1.13) | Depends: mobilesubstrate, preferenceloader, com.saurik.substrate.safemode, ws.hbang.common (>=1.13) | ||||
Conflicts: com.burritoz.testing | |||||
Architecture: iphoneos-arm | Architecture: iphoneos-arm | ||||
Description: A very noice tweak to configure the dock a bit more... | Description: A very noice tweak to configure the dock a bit more... | ||||
Maintainer: burrit0z | Maintainer: burrit0z | ||||
Author: burrit0z | Author: burrit0z | ||||
Section: Tweaks | Section: Tweaks | ||||
Version: 1.2-12+debug | |||||
Installed-Size: 412 | |||||
Version: 1.2-7+debug | |||||
Installed-Size: 356 |
<key>icon</key> | <key>icon</key> | ||||
<string>icon.png</string> | <string>icon.png</string> | ||||
<key>packageIdentifier</key> | <key>packageIdentifier</key> | ||||
<string>com.burritoz.testing</string> | |||||
<string>com.burritoz.dockify</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Made by Burrit0z. Official repo:</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Burrit0z.github.com/repo</string> | |||||
</dict> | </dict> | ||||
<dict> | <dict> | ||||
<key>cell</key> | <key>cell</key> | ||||
<key>cell</key> | <key>cell</key> | ||||
<string>PSGroupCell</string> | <string>PSGroupCell</string> | ||||
<key>label</key> | <key>label</key> | ||||
<string>Max Dock Icons:</string> | |||||
<string>Custom Dock Icons (exact # you want):</string> | |||||
</dict> | </dict> | ||||
<dict> | <dict> | ||||
<key>cell</key> | <key>cell</key> | ||||
<key>key</key> | <key>key</key> | ||||
<string>setIconNumber</string> | <string>setIconNumber</string> | ||||
<key>min</key> | <key>min</key> | ||||
<integer>0</integer> | |||||
<integer>4</integer> | |||||
<key>max</key> | <key>max</key> | ||||
<integer>20</integer> | |||||
<integer>10</integer> | |||||
<key>isSegmented</key> | <key>isSegmented</key> | ||||
<true/> | <true/> | ||||
<key>segmentCount</key> | <key>segmentCount</key> | ||||
<integer>20</integer> | |||||
<integer>6</integer> | |||||
<key>showValue</key> | <key>showValue</key> | ||||
<true/> | <true/> | ||||
</dict> | </dict> |
./packages/com.burritoz.testing_1.2-12+debug_iphoneos-arm.deb | |||||
./packages/com.burritoz.dockify_1.2-7+debug_iphoneos-arm.deb |
/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ | /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/HBLog.h \ | /Users/carsonzielinski/Documents/theos/include/HBLog.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ | /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/SpringBoard/SpringBoard.h \ | |||||
/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/substrate.h | /Users/carsonzielinski/Documents/theos/include/substrate.h | ||||
/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: | /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: | ||||
/Users/carsonzielinski/Documents/theos/include/SpringBoard/SpringBoard.h: | |||||
/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | ||||
/Users/carsonzielinski/Documents/theos/include/substrate.h: | /Users/carsonzielinski/Documents/theos/include/substrate.h: |
#import <Cephei/HBPreferences.h> | |||||
@interface SBDockView | |||||
@property (nonatomic, assign) double dockHeight; | |||||
@end | |||||
@interface SBDockIconListView | |||||
@end | |||||
@interface SBIconListView | |||||
@end | |||||
#include <UIKit/UIKit.h> | |||||
#import <SpringBoard/SpringBoard.h> | |||||
#import <Cephei/HBPreferences.h> | |||||
static BOOL transparent; | static BOOL transparent; | ||||
static double customOpacity; | static double customOpacity; | ||||
static NSInteger setIconNumber; | static NSInteger setIconNumber; | ||||
HBPreferences *preferences; | HBPreferences *preferences; | ||||
#define _LOGOS_RETURN_RETAINED | #define _LOGOS_RETURN_RETAINED | ||||
#endif | #endif | ||||
@class SBDockView; @class SBDockIconListView; | |||||
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_meta_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static BOOL (*_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$)(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL, unsigned long long); static BOOL _logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL, unsigned long long); | |||||
@class SBDockIconListView; @class SBDockView; | |||||
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSUInteger (*_logos_orig$_ungrouped$SBDockIconListView$maximumIconCount)(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); static NSUInteger _logos_method$_ungrouped$SBDockIconListView$maximumIconCount(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); | |||||
#line 23 "Tweak.x" | |||||
#line 27 "Tweak.x" | |||||
static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) { | |||||
static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) { | |||||
if (transparent == NO && hidden == NO) { | if (transparent == NO && hidden == NO) { | ||||
_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); | _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); | ||||
}else if (transparent || hidden) { | }else if (transparent || hidden) { | ||||
static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | ||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); | return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); | ||||
} | } | ||||
} | |||||
static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
return (_logos_meta_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight); | |||||
static double _logos_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (_logos_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight); | |||||
} | } | ||||
} | |||||
} | } | ||||
} | } | ||||
static BOOL _logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, unsigned long long arg1) { | |||||
static NSUInteger _logos_method$_ungrouped$SBDockIconListView$maximumIconCount(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
if (hidden) { | if (hidden) { | ||||
return (0); | return (0); | ||||
_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$(self, _cmd, NO); | |||||
} else { | } else { | ||||
_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$(self, _cmd, YES); | |||||
return (setIconNumber); | return (setIconNumber); | ||||
} | } | ||||
} | } | ||||
static __attribute__((constructor)) void _logosLocalCtor_4c282753(int __unused argc, char __unused **argv, char __unused **envp) { | |||||
static __attribute__((constructor)) void _logosLocalCtor_d89c9af8(int __unused argc, char __unused **argv, char __unused **envp) { | |||||
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | ||||
[preferences registerDefaults:@{ | [preferences registerDefaults:@{ | ||||
@"setHeight": @1, | @"setHeight": @1, | ||||
@"customOpacity": @1, | @"customOpacity": @1, | ||||
@"hidden": @NO, | @"hidden": @NO, | ||||
@"setIconNumber": @4, | |||||
}]; | }]; | ||||
[preferences registerBool:&transparent default:YES forKey:@"transparent"]; | [preferences registerBool:&transparent default:YES forKey:@"transparent"]; | ||||
[preferences registerBool:&hidden default:NO forKey:@"hidden"]; | [preferences registerBool:&hidden default:NO forKey:@"hidden"]; | ||||
[preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; | [preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; | ||||
[preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; | [preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; | ||||
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; | [preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; | ||||
} | } | ||||
static __attribute__((constructor)) void _logosLocalInit() { | static __attribute__((constructor)) void _logosLocalInit() { | ||||
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); Class _logos_metaclass$_ungrouped$SBDockView = object_getClass(_logos_class$_ungrouped$SBDockView); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_meta_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_meta_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_class$_ungrouped$SBDockIconListView, @selector(allowsAddingIconCount:), (IMP)&_logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$, (IMP*)&_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$);} } | |||||
#line 88 "Tweak.x" | |||||
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_class$_ungrouped$SBDockIconListView, @selector(maximumIconCount), (IMP)&_logos_method$_ungrouped$SBDockIconListView$maximumIconCount, (IMP*)&_logos_orig$_ungrouped$SBDockIconListView$maximumIconCount);} } | |||||
#line 97 "Tweak.x" |
/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ | /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/HBLog.h \ | /Users/carsonzielinski/Documents/theos/include/HBLog.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ | /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/SpringBoard/SpringBoard.h \ | |||||
/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/substrate.h | /Users/carsonzielinski/Documents/theos/include/substrate.h | ||||
/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: | /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: | ||||
/Users/carsonzielinski/Documents/theos/include/SpringBoard/SpringBoard.h: | |||||
/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | ||||
/Users/carsonzielinski/Documents/theos/include/substrate.h: | /Users/carsonzielinski/Documents/theos/include/substrate.h: |
#import <Cephei/HBPreferences.h> | |||||
@interface SBDockView | |||||
@property (nonatomic, assign) double dockHeight; | |||||
@end | |||||
@interface SBDockIconListView | |||||
@end | |||||
@interface SBIconListView | |||||
@end | |||||
#include <UIKit/UIKit.h> | |||||
#import <SpringBoard/SpringBoard.h> | |||||
#import <Cephei/HBPreferences.h> | |||||
static BOOL transparent; | static BOOL transparent; | ||||
static double customOpacity; | static double customOpacity; | ||||
static NSInteger setIconNumber; | static NSInteger setIconNumber; | ||||
HBPreferences *preferences; | HBPreferences *preferences; | ||||
#define _LOGOS_RETURN_RETAINED | #define _LOGOS_RETURN_RETAINED | ||||
#endif | #endif | ||||
@class SBDockIconListView; @class SBDockView; | |||||
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_meta_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static BOOL (*_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$)(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL, unsigned long long); static BOOL _logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL, unsigned long long); | |||||
@class SBDockView; @class SBDockIconListView; | |||||
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSUInteger (*_logos_orig$_ungrouped$SBDockIconListView$maximumIconCount)(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); static NSUInteger _logos_method$_ungrouped$SBDockIconListView$maximumIconCount(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); | |||||
#line 23 "Tweak.x" | |||||
#line 27 "Tweak.x" | |||||
static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) { | |||||
static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) { | |||||
if (transparent == NO && hidden == NO) { | if (transparent == NO && hidden == NO) { | ||||
_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); | _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); | ||||
}else if (transparent || hidden) { | }else if (transparent || hidden) { | ||||
static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | ||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); | return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); | ||||
} | } | ||||
} | |||||
static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
return (_logos_meta_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight); | |||||
static double _logos_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (_logos_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight); | |||||
} | } | ||||
} | |||||
} | } | ||||
} | } | ||||
static BOOL _logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, unsigned long long arg1) { | |||||
static NSUInteger _logos_method$_ungrouped$SBDockIconListView$maximumIconCount(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
if (hidden) { | if (hidden) { | ||||
return (0); | return (0); | ||||
_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$(self, _cmd, NO); | |||||
} else { | } else { | ||||
_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$(self, _cmd, YES); | |||||
return (setIconNumber); | return (setIconNumber); | ||||
} | } | ||||
} | } | ||||
static __attribute__((constructor)) void _logosLocalCtor_4c282753(int __unused argc, char __unused **argv, char __unused **envp) { | |||||
static __attribute__((constructor)) void _logosLocalCtor_d89c9af8(int __unused argc, char __unused **argv, char __unused **envp) { | |||||
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | ||||
[preferences registerDefaults:@{ | [preferences registerDefaults:@{ | ||||
@"setHeight": @1, | @"setHeight": @1, | ||||
@"customOpacity": @1, | @"customOpacity": @1, | ||||
@"hidden": @NO, | @"hidden": @NO, | ||||
@"setIconNumber": @4, | |||||
}]; | }]; | ||||
[preferences registerBool:&transparent default:YES forKey:@"transparent"]; | [preferences registerBool:&transparent default:YES forKey:@"transparent"]; | ||||
[preferences registerBool:&hidden default:NO forKey:@"hidden"]; | [preferences registerBool:&hidden default:NO forKey:@"hidden"]; | ||||
[preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; | [preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; | ||||
[preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; | [preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; | ||||
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; | [preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; | ||||
} | } | ||||
static __attribute__((constructor)) void _logosLocalInit() { | static __attribute__((constructor)) void _logosLocalInit() { | ||||
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); Class _logos_metaclass$_ungrouped$SBDockView = object_getClass(_logos_class$_ungrouped$SBDockView); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_meta_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_meta_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_class$_ungrouped$SBDockIconListView, @selector(allowsAddingIconCount:), (IMP)&_logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$, (IMP*)&_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$);} } | |||||
#line 88 "Tweak.x" | |||||
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_class$_ungrouped$SBDockIconListView, @selector(maximumIconCount), (IMP)&_logos_method$_ungrouped$SBDockIconListView$maximumIconCount, (IMP*)&_logos_orig$_ungrouped$SBDockIconListView$maximumIconCount);} } | |||||
#line 97 "Tweak.x" |
/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ | /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/HBLog.h \ | /Users/carsonzielinski/Documents/theos/include/HBLog.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ | /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/SpringBoard/SpringBoard.h \ | |||||
/Users/carsonzielinski/Documents/testing/dockifyHeaders.h \ | |||||
/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | ||||
/Users/carsonzielinski/Documents/theos/include/substrate.h | /Users/carsonzielinski/Documents/theos/include/substrate.h | ||||
/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: | /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: | ||||
/Users/carsonzielinski/Documents/theos/include/SpringBoard/SpringBoard.h: | |||||
/Users/carsonzielinski/Documents/testing/dockifyHeaders.h: | |||||
/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | ||||
/Users/carsonzielinski/Documents/theos/include/substrate.h: | /Users/carsonzielinski/Documents/theos/include/substrate.h: |
#include <UIKit/UIKit.h> | |||||
#import <SpringBoard/SpringBoard.h> | |||||
#import "dockifyHeaders.h" | |||||
#import <Cephei/HBPreferences.h> | #import <Cephei/HBPreferences.h> | ||||
@interface SBDockView | |||||
@property (nonatomic, assign) double dockHeight; | |||||
@end | |||||
@interface SBDockIconListView | |||||
@end | |||||
@interface SBIconListView | |||||
@end | |||||
static BOOL transparent; | static BOOL transparent; | ||||
static BOOL hidden; | static BOOL hidden; | ||||
static double customOpacity; | static double customOpacity; | ||||
static NSInteger setIconNumber; | static NSInteger setIconNumber; | ||||
@implementation SBDockIconListView | |||||
@synthesize minimumNumberOfIconsToDistributeEvenlyToEdges=_minimumNumberOfIconsToDistributeEvenlyToEdges; | |||||
@end | |||||
HBPreferences *preferences; | HBPreferences *preferences; | ||||
#endif | #endif | ||||
@class SBDockView; @class SBDockIconListView; | @class SBDockView; @class SBDockIconListView; | ||||
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_meta_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static BOOL (*_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$)(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL, unsigned long long); static BOOL _logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL, unsigned long long); | |||||
static void (*_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL, double); static double (*_logos_orig$_ungrouped$SBDockView$dockHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double (*_logos_orig$_ungrouped$SBDockView$defaultHeight)(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static double _logos_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST, SEL); static NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static unsigned long long (*_logos_orig$_ungrouped$SBDockIconListView$maximumIconCount)(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); static unsigned long long _logos_method$_ungrouped$SBDockIconListView$maximumIconCount(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); static unsigned long long (*_logos_orig$_ungrouped$SBDockIconListView$minimumNumberOfIconsToDistributeEvenlyToEdges)(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); static unsigned long long _logos_method$_ungrouped$SBDockIconListView$minimumNumberOfIconsToDistributeEvenlyToEdges(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST, SEL); | |||||
#line 26 "Tweak.x" | |||||
#line 27 "Tweak.x" | |||||
static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) { | |||||
static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, double arg1) { | |||||
if (transparent == NO && hidden == NO) { | if (transparent == NO && hidden == NO) { | ||||
_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); | _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); | ||||
}else if (transparent || hidden) { | }else if (transparent || hidden) { | ||||
static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | ||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); | return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); | ||||
} | } | ||||
} | |||||
static double _logos_meta_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
return (_logos_meta_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight); | |||||
static double _logos_method$_ungrouped$SBDockView$defaultHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (_logos_orig$_ungrouped$SBDockView$defaultHeight(self, _cmd)*setHeight); | |||||
} | } | ||||
} | |||||
} | } | ||||
} | } | ||||
static BOOL _logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, unsigned long long arg1) { | |||||
static unsigned long long _logos_method$_ungrouped$SBDockIconListView$maximumIconCount(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
if (hidden) { | if (hidden) { | ||||
return (0); | return (0); | ||||
_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$(self, _cmd, NO); | |||||
} else { | } else { | ||||
_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$(self, _cmd, YES); | |||||
return (setIconNumber); | return (setIconNumber); | ||||
} | } | ||||
} | } | ||||
static unsigned long long _logos_method$_ungrouped$SBDockIconListView$minimumNumberOfIconsToDistributeEvenlyToEdges(_LOGOS_SELF_TYPE_NORMAL SBDockIconListView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { | |||||
return(3); | |||||
} | |||||
static __attribute__((constructor)) void _logosLocalCtor_4c282753(int __unused argc, char __unused **argv, char __unused **envp) { | |||||
static __attribute__((constructor)) void _logosLocalCtor_a036efd8(int __unused argc, char __unused **argv, char __unused **envp) { | |||||
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | ||||
[preferences registerDefaults:@{ | [preferences registerDefaults:@{ | ||||
@"setHeight": @1, | @"setHeight": @1, | ||||
@"customOpacity": @1, | @"customOpacity": @1, | ||||
@"hidden": @NO, | @"hidden": @NO, | ||||
@"setIconNumber": @4, | |||||
}]; | }]; | ||||
[preferences registerBool:&transparent default:YES forKey:@"transparent"]; | [preferences registerBool:&transparent default:YES forKey:@"transparent"]; | ||||
[preferences registerBool:&hidden default:NO forKey:@"hidden"]; | [preferences registerBool:&hidden default:NO forKey:@"hidden"]; | ||||
[preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; | [preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; | ||||
[preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; | [preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; | ||||
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; | [preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; | ||||
} | } | ||||
static __attribute__((constructor)) void _logosLocalInit() { | static __attribute__((constructor)) void _logosLocalInit() { | ||||
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); Class _logos_metaclass$_ungrouped$SBDockView = object_getClass(_logos_class$_ungrouped$SBDockView); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_meta_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_meta_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_class$_ungrouped$SBDockIconListView, @selector(allowsAddingIconCount:), (IMP)&_logos_method$_ungrouped$SBDockIconListView$allowsAddingIconCount$, (IMP*)&_logos_orig$_ungrouped$SBDockIconListView$allowsAddingIconCount$);} } | |||||
#line 88 "Tweak.x" | |||||
{Class _logos_class$_ungrouped$SBDockView = objc_getClass("SBDockView"); MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(setBackgroundAlpha:), (IMP)&_logos_method$_ungrouped$SBDockView$setBackgroundAlpha$, (IMP*)&_logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(dockHeight), (IMP)&_logos_method$_ungrouped$SBDockView$dockHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$dockHeight);MSHookMessageEx(_logos_class$_ungrouped$SBDockView, @selector(defaultHeight), (IMP)&_logos_method$_ungrouped$SBDockView$defaultHeight, (IMP*)&_logos_orig$_ungrouped$SBDockView$defaultHeight);Class _logos_class$_ungrouped$SBDockIconListView = objc_getClass("SBDockIconListView"); Class _logos_metaclass$_ungrouped$SBDockIconListView = object_getClass(_logos_class$_ungrouped$SBDockIconListView); MSHookMessageEx(_logos_metaclass$_ungrouped$SBDockIconListView, @selector(maxIcons), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$maxIcons, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$maxIcons);MSHookMessageEx(_logos_class$_ungrouped$SBDockIconListView, @selector(maximumIconCount), (IMP)&_logos_method$_ungrouped$SBDockIconListView$maximumIconCount, (IMP*)&_logos_orig$_ungrouped$SBDockIconListView$maximumIconCount);MSHookMessageEx(_logos_class$_ungrouped$SBDockIconListView, @selector(minimumNumberOfIconsToDistributeEvenlyToEdges), (IMP)&_logos_method$_ungrouped$SBDockIconListView$minimumNumberOfIconsToDistributeEvenlyToEdges, (IMP*)&_logos_orig$_ungrouped$SBDockIconListView$minimumNumberOfIconsToDistributeEvenlyToEdges);} } | |||||
#line 103 "Tweak.x" |
<key>icon</key> | <key>icon</key> | ||||
<string>icon.png</string> | <string>icon.png</string> | ||||
<key>packageIdentifier</key> | <key>packageIdentifier</key> | ||||
<string>com.burritoz.testing</string> | |||||
<string>com.burritoz.dockify</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Made by Burrit0z. Official repo:</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Burrit0z.github.com/repo</string> | |||||
</dict> | </dict> | ||||
<dict> | <dict> | ||||
<key>cell</key> | <key>cell</key> | ||||
<key>cell</key> | <key>cell</key> | ||||
<string>PSGroupCell</string> | <string>PSGroupCell</string> | ||||
<key>label</key> | <key>label</key> | ||||
<string>Max Dock Icons:</string> | |||||
<string>Custom Dock Icons (exact # you want):</string> | |||||
</dict> | </dict> | ||||
<dict> | <dict> | ||||
<key>cell</key> | <key>cell</key> | ||||
<key>key</key> | <key>key</key> | ||||
<string>setIconNumber</string> | <string>setIconNumber</string> | ||||
<key>min</key> | <key>min</key> | ||||
<integer>0</integer> | |||||
<integer>4</integer> | |||||
<key>max</key> | <key>max</key> | ||||
<integer>20</integer> | |||||
<integer>10</integer> | |||||
<key>isSegmented</key> | <key>isSegmented</key> | ||||
<true/> | <true/> | ||||
<key>segmentCount</key> | <key>segmentCount</key> | ||||
<integer>20</integer> | |||||
<integer>6</integer> | |||||
<key>showValue</key> | <key>showValue</key> | ||||
<true/> | <true/> | ||||
</dict> | </dict> |
12 | |||||
35 |
#import <Cephei/HBPreferences.h> | |||||
@interface SBCoverSheetPrimarySlidingViewController : UIViewController | |||||
- (void)viewDidDisappear:(BOOL)arg1; | |||||
- (void)viewDidAppear:(BOOL)arg1; | |||||
@end | |||||
//Set up variables for use with Cephei | |||||
static BOOL transparent; | |||||
static BOOL hidden; | |||||
static double setHeight; | |||||
static double customOpacity; | |||||
static NSInteger setIconNumber; | |||||
//nepeta like drm | |||||
BOOL dpkgInvalid = NO; | |||||
//static NSInteger setDockRowNumber; | |||||
//static CGFloat setRowSpacing; | |||||
HBPreferences *preferences; | |||||
%hook SBCoverSheetPrimarySlidingViewController | |||||
- (void)viewDidDisappear:(BOOL)arg1 { | |||||
%orig; // Thanks to Nepeta for the DRM | |||||
if (!dpkgInvalid) return; | |||||
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Pirate Detected!" | |||||
message:@"Seriously? Pirating a free Tweak is awful!\nPiracy repo's Tweaks could contain Malware if you didn't know that, so go ahead and get Dockify from the official Source https://Burrit0z.github.io/repo/.\nIf you're seeing this but you got it from the official source then make sure to add https://Burrit0z.github.io/repo to Cydia or Sileo." | |||||
preferredStyle:UIAlertControllerStyleAlert]; | |||||
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Aww man" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) { | |||||
UIApplication *application = [UIApplication sharedApplication]; | |||||
[application openURL:[NSURL URLWithString:@"https://Burrit0z.github.io/repo"] options:@{} completionHandler:nil]; | |||||
}]; | |||||
[alertController addAction:cancelAction]; | |||||
[self presentViewController:alertController animated:YES completion:nil]; | |||||
} | |||||
%end | |||||
//hook the dock | |||||
%hook SBDockView | |||||
//this deals with everything adjusting opacity/transparency | |||||
//ios 12 and 13 | |||||
-(void)setBackgroundAlpha:(double)arg1 { | |||||
if (transparent == NO && hidden == NO) { //if not transparent and not hidden | |||||
%orig(customOpacity); | |||||
}else if (transparent || hidden) { // Note: || means or in objc | |||||
%orig(0.0); //hides background of the dock (transparent) | |||||
} else { | |||||
NSLog(@"Dock not Transparent/hidden, no custom opacity\n"); | |||||
} | |||||
} | |||||
//ios 13 | |||||
-(double)defaultHeight { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (%orig*setHeight); //sets custom height if dock is not set to hidden | |||||
} | |||||
} | |||||
//ios 12 | |||||
-(double)dockHeight { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (%orig*setHeight); //sets custom height if dock is not set to hidden | |||||
} | |||||
} | |||||
%end | |||||
//NEW HOOK FOR ICON STATE | |||||
%hook SBDockIconListView | |||||
//ios 12 required piece | |||||
+(NSInteger)maxIcons { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (setIconNumber); | |||||
} | |||||
} | |||||
- (NSUInteger)iconColumnsForCurrentOrientation { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
NSInteger reg = %orig; | |||||
return reg; //basically just returns the original value | |||||
} | |||||
} | |||||
%end | |||||
//ios 13 | |||||
%hook SBIconListGridLayoutConfiguration | |||||
-(void)setNumberOfPortraitColumns:(unsigned long long)arg1 { | |||||
if (setIconNumber == 4) { | |||||
NSIntegr reg = %orig; | |||||
%orig(reg); | |||||
} else { | |||||
%orig(setIconNumber); | |||||
} | |||||
} | |||||
%end | |||||
%hook SBIconListView | |||||
//fix so it doesnt set all pages to 5 columns ios 13 | |||||
-(unsigned long long)iconColumnsForCurrentOrientation { | |||||
return (4); | |||||
} | |||||
-(BOOL)automaticallyAdjustsLayoutMetricsToFit { | |||||
return YES; | |||||
} | |||||
%end | |||||
//fix for icons being off the page ios 13 and maybe 12 | |||||
%hook SBIconListFlowLayout | |||||
- (NSUInteger)numberOfColumnsForOrientation:(NSInteger)arg1 { | |||||
return (4); | |||||
} | |||||
%end | |||||
//another fix for the folders ios12 | |||||
%hook SBFolderIconListView | |||||
+(unsigned long long)iconColumnsForInterfaceOrientation:(long long)arg1 { | |||||
return (4); | |||||
} | |||||
%end | |||||
// Thanks to Nepeta for the DRM, and thanks to Sh0rtflow as well | |||||
%ctor { | |||||
dpkgInvalid = ![[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.burritoz.dockify.list"]; | |||||
if (!dpkgInvalid) dpkgInvalid = ![[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.burritoz.dockify.md5sums"]; | |||||
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | |||||
[preferences registerDefaults:@ { //defaults for prefernces | |||||
@"setHeight": @1, | |||||
@"customOpacity": @1, | |||||
@"hidden": @NO, | |||||
@"setIconNumber": @4, | |||||
// @"setRowSpacing": @0, | |||||
}]; | |||||
[preferences registerBool:&transparent default:YES forKey:@"transparent"]; //registering transparent as a Boolean | |||||
[preferences registerBool:&hidden default:NO forKey:@"hidden"]; //registering hidden as a Boolean | |||||
[preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; //registering setHeigt as a double (number) | |||||
[preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; //registering customOpacity as a double (number) | |||||
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; //Integer of how many icons to allow | |||||
// [preferences registerInteger:(NSInteger *)&setDockRowNumber default:1 forKey:@"setDockRowNumber"]; //Integer of how many dock rows to allow | |||||
// [preferences registerFloat:(CGFloat *)&setRowSpacing default:0 forKey:@"setRowSpacing"]; //custom dock row spacing? | |||||
} |
ARCHS = armv7s arm64 arm64e | |||||
ARCHS = arm64 arm64e | |||||
INSTALL_TARGET_PROCESSES = SpringBoard | INSTALL_TARGET_PROCESSES = SpringBoard | ||||
include $(THEOS)/makefiles/common.mk | include $(THEOS)/makefiles/common.mk | ||||
TWEAK_NAME = testing | |||||
TWEAK_NAME = Dockify | |||||
testing_FILES = Tweak.x | |||||
testing_CFLAGS = -fobjc-arc | |||||
testing_EXTRA_FRAMEWORKS += Cephei | |||||
Dockify_FILES = Dockify.x | |||||
Dockify_CFLAGS = -fobjc-arc | |||||
Dockify_EXTRA_FRAMEWORKS += Cephei | |||||
include $(THEOS_MAKE_PATH)/tweak.mk | include $(THEOS_MAKE_PATH)/tweak.mk | ||||
SUBPROJECTS += dockifyprefs | SUBPROJECTS += dockifyprefs |
SOURCE CODE FOR DOCKIFY | SOURCE CODE FOR DOCKIFY | ||||
**Get it here:** https://burrit0z.github.io/repo | **Get it here:** https://burrit0z.github.io/repo | ||||
**Compatability** iOS 8 to 12.x, a12 included | |||||
## iOS 13 support eta son ## | |||||
**Compatability:** iOS 8 and up, a12 included | |||||
**Source code:** You are looking at it. |
//I looked at Kritanta's "Home Plus" tweak for help with ios13 stuff. I DID NOT | |||||
//copy anything, at least knowingly because these tweaks are simillar, please | |||||
//understand the code may be simillar becuase we are doing similar things. | |||||
//I am liscensing this under MIT, anyone can use anything they need to from here | |||||
#include <UIKit/UIKit.h> | |||||
#import <Cephei/HBPreferences.h> | |||||
@interface SBDockView | |||||
@property (nonatomic, assign) double dockHeight; | |||||
@end | |||||
@interface SBDockIconListView | |||||
@end | |||||
@interface SBIconListView | |||||
@end | |||||
@interface SBRootIconListView : UIView | |||||
+ (NSInteger)iconColumnsForInterfaceOrientation; | |||||
@end | |||||
@interface SBDockIconListView : SBRootIconListView | |||||
@end | |||||
//Set up variables for use with Cephei | |||||
static BOOL transparent; | |||||
static BOOL hidden; | |||||
static double setHeight; | |||||
static double customOpacity; | |||||
static NSInteger setIconNumber; | |||||
HBPreferences *preferences; | |||||
//hook the dock | |||||
%hook SBDockView | |||||
//this deals with everything adjusting opacity/transparency | |||||
//ios 12 and 13 | |||||
-(void)setBackgroundAlpha:(double)arg1 { | |||||
if (transparent == NO && hidden == NO) { //if not transparent and not hidden | |||||
%orig(customOpacity); | |||||
}else if (transparent || hidden) { // Note: || means or in objc | |||||
%orig(0.0); //hides background of the dock (transparent) | |||||
} else { | |||||
NSLog(@"Dock not Transparent/hidden, no custom opacity\n"); | |||||
} | |||||
} | |||||
//ios 12 | |||||
-(double)dockHeight { | |||||
return (%orig*setHeight); //sets custom height if dock is not set to hidden | |||||
} | |||||
//ios 13 | |||||
+(double)defaultHeight { | |||||
return (%orig*setHeight); //sets custom height if dock is not set to hidden | |||||
} | |||||
%end | |||||
%hook SBDockIconListView | |||||
//ios 12 | |||||
+(NSInteger)maxIcons { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (setIconNumber); | |||||
} | |||||
} | |||||
//ios13 | |||||
%end | |||||
%ctor { | |||||
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | |||||
[preferences registerDefaults:@{ //defaults for prefernces | |||||
@"setHeight": @1, | |||||
@"customOpacity": @1, | |||||
@"hidden": @NO, | |||||
@"setIconNumber": @4, | |||||
}]; | |||||
[preferences registerBool:&transparent default:YES forKey:@"transparent"]; //registering transparent as a Boolean | |||||
[preferences registerBool:&hidden default:NO forKey:@"hidden"]; //registering hidden as a Boolean | |||||
[preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; //registering setHeigt as a double (number) | |||||
[preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; //registering customOpacity as a double (number) | |||||
[preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; //Integer of how many icons to allow | |||||
} |
Package: com.burritoz.testing | |||||
Package: com.burritoz.dockify | |||||
Name: Dockify | Name: Dockify | ||||
Depends: mobilesubstrate, preferenceloader, com.saurik.substrate.safemode, ws.hbang.common (>=1.13) | Depends: mobilesubstrate, preferenceloader, com.saurik.substrate.safemode, ws.hbang.common (>=1.13) | ||||
Conflicts: com.burritoz.testing | |||||
Version: 1.2 | Version: 1.2 | ||||
Architecture: iphoneos-arm | Architecture: iphoneos-arm | ||||
Description: A very noice tweak to configure the dock a bit more... | Description: A very noice tweak to configure the dock a bit more... |
<key>icon</key> | <key>icon</key> | ||||
<string>icon.png</string> | <string>icon.png</string> | ||||
<key>packageIdentifier</key> | <key>packageIdentifier</key> | ||||
<string>com.burritoz.testing</string> | |||||
<string>com.burritoz.dockify</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Made by Burrit0z. Official repo:</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Burrit0z.github.com/repo</string> | |||||
</dict> | </dict> | ||||
<dict> | <dict> | ||||
<key>cell</key> | <key>cell</key> | ||||
<key>cell</key> | <key>cell</key> | ||||
<string>PSGroupCell</string> | <string>PSGroupCell</string> | ||||
<key>label</key> | <key>label</key> | ||||
<string>Max Dock Icons:</string> | |||||
<string>Custom Dock Icons (exact # you want):</string> | |||||
</dict> | </dict> | ||||
<dict> | <dict> | ||||
<key>cell</key> | <key>cell</key> | ||||
<key>key</key> | <key>key</key> | ||||
<string>setIconNumber</string> | <string>setIconNumber</string> | ||||
<key>min</key> | <key>min</key> | ||||
<integer>0</integer> | |||||
<integer>4</integer> | |||||
<key>max</key> | <key>max</key> | ||||
<integer>20</integer> | |||||
<integer>10</integer> | |||||
<key>isSegmented</key> | <key>isSegmented</key> | ||||
<true/> | <true/> | ||||
<key>segmentCount</key> | <key>segmentCount</key> | ||||
<integer>20</integer> | |||||
<integer>6</integer> | |||||
<key>showValue</key> | <key>showValue</key> | ||||
<true/> | <true/> | ||||
</dict> | </dict> |
BACKUP cause im lazy. this is for a future feature | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Max Dock Rows:</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSSliderCell</string> | |||||
<key>default</key> | |||||
<string>1</string> | |||||
<key>defaults</key> | |||||
<string>com.burritoz.dockifyprefs</string> | |||||
<key>key</key> | |||||
<string>setDockRowNumber</string> | |||||
<key>min</key> | |||||
<integer>0</integer> | |||||
<key>max</key> | |||||
<integer>7</integer> | |||||
<key>isSegmented</key> | |||||
<true/> | |||||
<key>segmentCount</key> | |||||
<integer>7</integer> | |||||
<key>showValue</key> | |||||
<true/> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Dock Row Spacing</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSSliderCell</string> | |||||
<key>default</key> | |||||
<string>0</string> | |||||
<key>defaults</key> | |||||
<string>com.burritoz.dockifyprefs</string> | |||||
<key>key</key> | |||||
<string>setRowSpacing</string> | |||||
<key>min</key> | |||||
<integer>0</integer> | |||||
<key>max</key> | |||||
<integer>200</integer> | |||||
<key>isSegmented</key> | |||||
<true/> | |||||
<key>segmentCount</key> | |||||
<integer>200</integer> | |||||
<key>showValue</key> | |||||
<true/> | |||||
</dict> |
{ Filter = { Bundles = ( "com.apple.springboard" ); }; } |