diff --git a/.DS_Store b/.DS_Store old mode 100644 new mode 100755 index 17e968d..cf144ef Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.theos/_/DEBIAN/control b/.theos/_/DEBIAN/control index 5a0803e..93a67fd 100644 --- a/.theos/_/DEBIAN/control +++ b/.theos/_/DEBIAN/control @@ -6,5 +6,5 @@ Description: A very noice tweak to configure the dock a bit more... Maintainer: burrit0z Author: burrit0z Section: Tweaks -Version: 1.2-5+debug +Version: 1.2-7+debug Installed-Size: 412 diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib b/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib index b6ead6c..a76b42b 100755 Binary files a/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib and b/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib differ diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.plist b/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.plist old mode 100644 new mode 100755 diff --git a/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Info.plist b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Root.plist b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Root.plist old mode 100644 new mode 100755 diff --git a/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/icon.png b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/icon.png old mode 100644 new mode 100755 diff --git a/.theos/_/Library/PreferenceLoader/Preferences/dockifyprefs.plist b/.theos/_/Library/PreferenceLoader/Preferences/dockifyprefs.plist old mode 100644 new mode 100755 diff --git a/.theos/build_session b/.theos/build_session old mode 100644 new mode 100755 diff --git a/.theos/last_package b/.theos/last_package old mode 100644 new mode 100755 index e98c776..789c32c --- a/.theos/last_package +++ b/.theos/last_package @@ -1 +1 @@ -./packages/com.burritoz.testing_1.2-5+debug_iphoneos-arm.deb +./packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb diff --git a/.theos/obj/debug/.stamp b/.theos/obj/debug/.stamp old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/Tweak.x.b761c000.Td b/.theos/obj/debug/arm64/Tweak.x.b761c000.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/Tweak.x.b761c000.o b/.theos/obj/debug/arm64/Tweak.x.b761c000.o old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/Tweak.x.cce53864.Td b/.theos/obj/debug/arm64/Tweak.x.cce53864.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/Tweak.x.cce53864.o b/.theos/obj/debug/arm64/Tweak.x.cce53864.o index 8e11c5f..ce42ea5 100644 Binary files a/.theos/obj/debug/arm64/Tweak.x.cce53864.o and b/.theos/obj/debug/arm64/Tweak.x.cce53864.o differ diff --git a/.theos/obj/debug/arm64/Tweak.x.m b/.theos/obj/debug/arm64/Tweak.x.m new file mode 100755 index 0000000..080eaf8 --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.x.m @@ -0,0 +1,104 @@ +#line 1 "Tweak.x" + +#import +#import +#import +#import +#import + + +static BOOL transparent; +static BOOL hidden; +static double setHeight; +static double customOpacity; +static NSInteger setIconNumber; + +HBPreferences *preferences; + + + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#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 NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); + +#line 18 "Tweak.x" + + + +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) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); + }else if (transparent || hidden) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, 0.0); + } else { + NSLog(@"Dock not Transparent/hidden, no custom opacity\n"); + } +} + + +static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + 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 NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + if (hidden) { + return (0); + } else { + return (setIconNumber); + } +} + +static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + if (hidden) { + return (0); + } else { + return (setIconNumber); + } +} + + + +static __attribute__((constructor)) void _logosLocalCtor_9f2e78ec(int __unused argc, char __unused **argv, char __unused **envp) { + preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; + [preferences registerDefaults:@{ + @"setHeight": @1, + @"customOpacity": @1, + @"hidden": @NO, + @"setIconNumber": @4, + }]; + [preferences registerBool:&transparent default:YES forKey:@"transparent"]; + [preferences registerBool:&hidden default:NO forKey:@"hidden"]; + [preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; + [preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; + [preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; +} +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_metaclass$_ungrouped$SBDockIconListView, @selector(iconColumnsForCurrentOrientation), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation);} } +#line 76 "Tweak.x" diff --git a/.theos/obj/debug/arm64/burRootListController.m.320cd592.Td b/.theos/obj/debug/arm64/burRootListController.m.320cd592.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/burRootListController.m.320cd592.o b/.theos/obj/debug/arm64/burRootListController.m.320cd592.o old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs b/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/testing.dylib b/.theos/obj/debug/arm64/testing.dylib index 32a984e..b2b28ed 100755 Binary files a/.theos/obj/debug/arm64/testing.dylib and b/.theos/obj/debug/arm64/testing.dylib differ diff --git a/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib b/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib old mode 100644 new mode 100755 index a5e2308..412be90 Binary files a/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib and b/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib differ diff --git a/.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.Td b/.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.o b/.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.o index cecbdda..6a4f7d8 100644 Binary files a/.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.o and b/.theos/obj/debug/arm64e/Tweak.x.1ad82ea2.o differ diff --git a/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.Td b/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.o b/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.o old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/Tweak.x.f8e2c40f.Td b/.theos/obj/debug/arm64e/Tweak.x.f8e2c40f.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/Tweak.x.f8e2c40f.o b/.theos/obj/debug/arm64e/Tweak.x.f8e2c40f.o old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/Tweak.x.m b/.theos/obj/debug/arm64e/Tweak.x.m old mode 100644 new mode 100755 index 36a1d6d..080eaf8 --- a/.theos/obj/debug/arm64e/Tweak.x.m +++ b/.theos/obj/debug/arm64e/Tweak.x.m @@ -1,8 +1,5 @@ #line 1 "Tweak.x" - - - #import #import #import @@ -41,9 +38,9 @@ HBPreferences *preferences; #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 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 NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); -#line 21 "Tweak.x" +#line 18 "Tweak.x" @@ -78,9 +75,17 @@ static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGO } } +static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + if (hidden) { + return (0); + } else { + return (setIconNumber); + } +} -static __attribute__((constructor)) void _logosLocalCtor_7d006fd9(int __unused argc, char __unused **argv, char __unused **envp) { + +static __attribute__((constructor)) void _logosLocalCtor_9f2e78ec(int __unused argc, char __unused **argv, char __unused **envp) { preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; [preferences registerDefaults:@{ @"setHeight": @1, @@ -95,5 +100,5 @@ static __attribute__((constructor)) void _logosLocalCtor_7d006fd9(int __unused a [preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; } 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);} } -#line 71 "Tweak.x" +{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_metaclass$_ungrouped$SBDockIconListView, @selector(iconColumnsForCurrentOrientation), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation);} } +#line 76 "Tweak.x" diff --git a/.theos/obj/debug/arm64e/burRootListController.m.1022476f.Td b/.theos/obj/debug/arm64e/burRootListController.m.1022476f.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/burRootListController.m.1022476f.o b/.theos/obj/debug/arm64e/burRootListController.m.1022476f.o old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs b/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/testing.dylib b/.theos/obj/debug/arm64e/testing.dylib index 159eea4..4118828 100755 Binary files a/.theos/obj/debug/arm64e/testing.dylib and b/.theos/obj/debug/arm64e/testing.dylib differ diff --git a/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib b/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib old mode 100644 new mode 100755 index a25641f..c75e5ae Binary files a/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib and b/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib differ diff --git a/.theos/obj/debug/armv7/burRootListController.m.40484a5d.Td b/.theos/obj/debug/armv7/burRootListController.m.40484a5d.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/armv7/burRootListController.m.40484a5d.o b/.theos/obj/debug/armv7/burRootListController.m.40484a5d.o old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist b/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs b/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/armv7s/Tweak.x.8f98122a.Td b/.theos/obj/debug/armv7s/Tweak.x.8f98122a.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/armv7s/Tweak.x.8f98122a.o b/.theos/obj/debug/armv7s/Tweak.x.8f98122a.o index 5357b47..acd4422 100644 Binary files a/.theos/obj/debug/armv7s/Tweak.x.8f98122a.o and b/.theos/obj/debug/armv7s/Tweak.x.8f98122a.o differ diff --git a/.theos/obj/debug/armv7s/Tweak.x.m b/.theos/obj/debug/armv7s/Tweak.x.m new file mode 100755 index 0000000..971109c --- /dev/null +++ b/.theos/obj/debug/armv7s/Tweak.x.m @@ -0,0 +1,104 @@ +#line 1 "Tweak.x" + +#import +#import +#import +#import +#import + + +static BOOL transparent; +static BOOL hidden; +static double setHeight; +static double customOpacity; +static NSInteger setIconNumber; + +HBPreferences *preferences; + + + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#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 NSInteger (*_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation)(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); + +#line 18 "Tweak.x" + + + +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) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); + }else if (transparent || hidden) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, 0.0); + } else { + NSLog(@"Dock not Transparent/hidden, no custom opacity\n"); + } +} + + +static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + 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 NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$maxIcons(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + if (hidden) { + return (0); + } else { + return (setIconNumber); + } +} + +static NSInteger _logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + if (hidden) { + return (0); + } else { + return (setIconNumber); + } +} + + + +static __attribute__((constructor)) void _logosLocalCtor_9f2e78ec(int __unused argc, char __unused **argv, char __unused **envp) { + preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; + [preferences registerDefaults:@{ + @"setHeight": @1, + @"customOpacity": @1, + @"hidden": @NO, + @"setIconNumber": @4, + }]; + [preferences registerBool:&transparent default:YES forKey:@"transparent"]; + [preferences registerBool:&hidden default:NO forKey:@"hidden"]; + [preferences registerDouble:(double *)&setHeight default:1 forKey:@"setHeight"]; + [preferences registerDouble:(double *)&customOpacity default:1 forKey:@"customOpacity"]; + [preferences registerInteger:(NSInteger *)&setIconNumber default:4 forKey:@"setIconNumber"]; +} +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_metaclass$_ungrouped$SBDockIconListView, @selector(iconColumnsForCurrentOrientation), (IMP)&_logos_meta_method$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation, (IMP*)&_logos_meta_orig$_ungrouped$SBDockIconListView$iconColumnsForCurrentOrientation);} } +#line 76 "Tweak.x" diff --git a/.theos/obj/debug/armv7s/testing.dylib b/.theos/obj/debug/armv7s/testing.dylib index 820fae4..619e1d2 100755 Binary files a/.theos/obj/debug/armv7s/testing.dylib and b/.theos/obj/debug/armv7s/testing.dylib differ diff --git a/.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib b/.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib old mode 100644 new mode 100755 index b2bc682..85c73b3 Binary files a/.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib and b/.theos/obj/debug/armv7s/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib differ diff --git a/.theos/obj/debug/dockifyprefs.bundle/Info.plist b/.theos/obj/debug/dockifyprefs.bundle/Info.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/dockifyprefs.bundle/Root.plist b/.theos/obj/debug/dockifyprefs.bundle/Root.plist old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/dockifyprefs.bundle/icon.png b/.theos/obj/debug/dockifyprefs.bundle/icon.png old mode 100644 new mode 100755 diff --git a/.theos/obj/debug/testing.dylib b/.theos/obj/debug/testing.dylib index b6ead6c..a76b42b 100755 Binary files a/.theos/obj/debug/testing.dylib and b/.theos/obj/debug/testing.dylib differ diff --git a/.theos/obj/iphone_simulator/debug/.stamp b/.theos/obj/iphone_simulator/debug/.stamp old mode 100644 new mode 100755 diff --git a/.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.Td b/.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.Td old mode 100644 new mode 100755 diff --git a/.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.o b/.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.fba03dd6.o old mode 100644 new mode 100755 diff --git a/.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.m b/.theos/obj/iphone_simulator/debug/x86_64/Tweak.x.m old mode 100644 new mode 100755 diff --git a/.theos/packages/com.burritoz.testing-1.2 b/.theos/packages/com.burritoz.testing-1.2 old mode 100644 new mode 100755 index 7813681..c793025 --- a/.theos/packages/com.burritoz.testing-1.2 +++ b/.theos/packages/com.burritoz.testing-1.2 @@ -1 +1 @@ -5 \ No newline at end of file +7 \ No newline at end of file diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index 08b3d9a..a4825db --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ -INSTALL_TARGET_PROCESSES = SpringBoard SpringBoardHome -# TARGET = simulator:clang::7.0 -# ARCHS = x86_64 i386 ARCHS = armv7s arm64 arm64e +INSTALL_TARGET_PROCESSES = SpringBoard include $(THEOS)/makefiles/common.mk diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/Tweak.x b/Tweak.x old mode 100644 new mode 100755 index 959b31e..c227a2a --- a/Tweak.x +++ b/Tweak.x @@ -1,22 +1,10 @@ -//import needed files/headers -/*#import -#import -#import */ +//Set up stuff #import #import #import #import #import -@interface SBDockView -@end - -@interface SBDockIconListView -@end - -@interface SBIconListView -@end - //Set up variables for use with Cephei static BOOL transparent; static BOOL hidden; @@ -61,6 +49,14 @@ HBPreferences *preferences; } } ++(NSInteger)iconColumnsForCurrentOrientation { + if (hidden) { + return (0); + } else { + return (setIconNumber); + } +} + %end %ctor { diff --git a/control b/control old mode 100644 new mode 100755 diff --git a/dockifyprefs/.DS_Store b/dockifyprefs/.DS_Store old mode 100644 new mode 100755 diff --git a/dockifyprefs/Makefile b/dockifyprefs/Makefile old mode 100644 new mode 100755 diff --git a/dockifyprefs/Resources/Info.plist b/dockifyprefs/Resources/Info.plist old mode 100644 new mode 100755 diff --git a/dockifyprefs/Resources/Root.plist b/dockifyprefs/Resources/Root.plist old mode 100644 new mode 100755 diff --git a/dockifyprefs/Resources/icon.png b/dockifyprefs/Resources/icon.png old mode 100644 new mode 100755 diff --git a/dockifyprefs/burRootListController.h b/dockifyprefs/burRootListController.h old mode 100644 new mode 100755 diff --git a/dockifyprefs/burRootListController.m b/dockifyprefs/burRootListController.m old mode 100644 new mode 100755 diff --git a/dockifyprefs/entry.plist b/dockifyprefs/entry.plist old mode 100644 new mode 100755 diff --git a/packages/.DS_Store b/packages/.DS_Store old mode 100644 new mode 100755 diff --git a/packages/com.burritoz.testing_1.0.0b-1+debug_iphoneos-arm.deb b/packages/com.burritoz.testing_1.0.0b-1+debug_iphoneos-arm.deb old mode 100644 new mode 100755 diff --git a/packages/com.burritoz.testing_1.1_iphoneos-arm.deb b/packages/com.burritoz.testing_1.1_iphoneos-arm.deb old mode 100644 new mode 100755 diff --git a/packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb b/packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb new file mode 100644 index 0000000..caa00f5 Binary files /dev/null and b/packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb differ diff --git a/packages/com.burritoz.testing_1.2_iphoneos-arm.deb b/packages/com.burritoz.testing_1.2_iphoneos-arm.deb old mode 100644 new mode 100755 diff --git a/testing.plist b/testing.plist old mode 100644 new mode 100755