mirror of
https://github.com/Burrit0z/Dockify_Source.git
synced 2025-07-01 10:26:46 +00:00
beta update (dont use)
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
.theos/*
|
@ -1,10 +1,11 @@
|
|||||||
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
|
Version: 1.2-7+debug
|
||||||
Installed-Size: 412
|
Installed-Size: 356
|
||||||
|
Binary file not shown.
@ -14,7 +14,19 @@
|
|||||||
<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>
|
||||||
@ -98,7 +110,7 @@
|
|||||||
<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>
|
||||||
@ -110,13 +122,13 @@
|
|||||||
<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>
|
||||||
|
@ -1 +1 @@
|
|||||||
./packages/com.burritoz.testing_1.2-12+debug_iphoneos-arm.deb
|
./packages/com.burritoz.dockify_1.2-7+debug_iphoneos-arm.deb
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
/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
|
||||||
|
|
||||||
@ -18,6 +19,8 @@
|
|||||||
|
|
||||||
/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:
|
||||||
|
Binary file not shown.
@ -3,18 +3,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <UIKit/UIKit.h>
|
||||||
|
#import <SpringBoard/SpringBoard.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;
|
||||||
@ -22,6 +15,9 @@ static double setHeight;
|
|||||||
static double customOpacity;
|
static double customOpacity;
|
||||||
static NSInteger setIconNumber;
|
static NSInteger setIconNumber;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
HBPreferences *preferences;
|
HBPreferences *preferences;
|
||||||
|
|
||||||
|
|
||||||
@ -46,14 +42,15 @@ HBPreferences *preferences;
|
|||||||
#define _LOGOS_RETURN_RETAINED
|
#define _LOGOS_RETURN_RETAINED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@class SBDockView; @class SBDockIconListView;
|
@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);
|
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 27 "Tweak.x"
|
#line 23 "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) {
|
||||||
@ -65,12 +62,22 @@ static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_
|
|||||||
|
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -85,32 +92,34 @@ static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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$);} }
|
{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 88 "Tweak.x"
|
#line 97 "Tweak.x"
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -5,6 +5,7 @@
|
|||||||
/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
|
||||||
|
|
||||||
@ -18,6 +19,8 @@
|
|||||||
|
|
||||||
/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:
|
||||||
|
Binary file not shown.
@ -3,18 +3,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <UIKit/UIKit.h>
|
||||||
|
#import <SpringBoard/SpringBoard.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;
|
||||||
@ -22,6 +15,9 @@ static double setHeight;
|
|||||||
static double customOpacity;
|
static double customOpacity;
|
||||||
static NSInteger setIconNumber;
|
static NSInteger setIconNumber;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
HBPreferences *preferences;
|
HBPreferences *preferences;
|
||||||
|
|
||||||
|
|
||||||
@ -46,14 +42,15 @@ HBPreferences *preferences;
|
|||||||
#define _LOGOS_RETURN_RETAINED
|
#define _LOGOS_RETURN_RETAINED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@class SBDockIconListView; @class SBDockView;
|
@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 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 27 "Tweak.x"
|
#line 23 "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) {
|
||||||
@ -65,12 +62,22 @@ static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_
|
|||||||
|
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -85,32 +92,34 @@ static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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$);} }
|
{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 88 "Tweak.x"
|
#line 97 "Tweak.x"
|
||||||
|
Binary file not shown.
Binary file not shown.
6
.theos/obj/debug/armv7s/Tweak.x.8f98122a.Td
Executable file → Normal file
6
.theos/obj/debug/armv7s/Tweak.x.8f98122a.Td
Executable file → Normal file
@ -5,6 +5,8 @@
|
|||||||
/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
|
||||||
|
|
||||||
@ -18,6 +20,10 @@
|
|||||||
|
|
||||||
/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:
|
||||||
|
Binary file not shown.
@ -3,18 +3,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#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;
|
||||||
@ -22,6 +15,12 @@ static double setHeight;
|
|||||||
static double customOpacity;
|
static double customOpacity;
|
||||||
static NSInteger setIconNumber;
|
static NSInteger setIconNumber;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@implementation SBDockIconListView
|
||||||
|
@synthesize minimumNumberOfIconsToDistributeEvenlyToEdges=_minimumNumberOfIconsToDistributeEvenlyToEdges;
|
||||||
|
@end
|
||||||
|
|
||||||
HBPreferences *preferences;
|
HBPreferences *preferences;
|
||||||
|
|
||||||
|
|
||||||
@ -47,13 +46,14 @@ 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 27 "Tweak.x"
|
#line 26 "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) {
|
||||||
@ -65,12 +65,22 @@ static void _logos_method$_ungrouped$SBDockView$setBackgroundAlpha$(_LOGOS_SELF_
|
|||||||
|
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -85,32 +95,37 @@ static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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$);} }
|
{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 88 "Tweak.x"
|
#line 103 "Tweak.x"
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -14,7 +14,19 @@
|
|||||||
<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>
|
||||||
@ -98,7 +110,7 @@
|
|||||||
<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>
|
||||||
@ -110,13 +122,13 @@
|
|||||||
<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>
|
||||||
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
12
|
35
|
152
Dockify.x
Executable file
152
Dockify.x
Executable file
@ -0,0 +1,152 @@
|
|||||||
|
#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?
|
||||||
|
}
|
10
Makefile
10
Makefile
@ -1,13 +1,13 @@
|
|||||||
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
|
Dockify_FILES = Dockify.x
|
||||||
testing_CFLAGS = -fobjc-arc
|
Dockify_CFLAGS = -fobjc-arc
|
||||||
testing_EXTRA_FRAMEWORKS += Cephei
|
Dockify_EXTRA_FRAMEWORKS += Cephei
|
||||||
|
|
||||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||||
SUBPROJECTS += dockifyprefs
|
SUBPROJECTS += dockifyprefs
|
||||||
|
@ -2,6 +2,5 @@
|
|||||||
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
|
**Compatability:** iOS 8 and up, a12 included
|
||||||
|
**Source code:** You are looking at it.
|
||||||
## iOS 13 support eta son ##
|
|
||||||
|
89
Tweak.x
89
Tweak.x
@ -1,89 +0,0 @@
|
|||||||
//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
|
|
||||||
}
|
|
3
control
3
control
@ -1,6 +1,7 @@
|
|||||||
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...
|
||||||
|
BIN
dockifyprefs/.DS_Store
vendored
BIN
dockifyprefs/.DS_Store
vendored
Binary file not shown.
@ -14,7 +14,19 @@
|
|||||||
<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>
|
||||||
@ -98,7 +110,7 @@
|
|||||||
<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>
|
||||||
@ -110,13 +122,13 @@
|
|||||||
<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>
|
||||||
|
53
dockifyprefs/Resources/notimportant(forlater).txt
Normal file
53
dockifyprefs/Resources/notimportant(forlater).txt
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
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>
|
BIN
packages/com.burritoz.dockify_1.2-7+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.burritoz.dockify_1.2-7+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.burritoz.dockify_1.2-7+debug_iphoneos-arm.deb.zip
Normal file
BIN
packages/com.burritoz.dockify_1.2-7+debug_iphoneos-arm.deb.zip
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }
|
|
Reference in New Issue
Block a user