commit bae7bbb83fdf6e8907cefb35f98e84338065f584 Author: Burrit0z <57574731+Burrit0z@users.noreply.github.com> Date: Mon Dec 23 20:37:14 2019 -0500 Dockify Dockify source diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8716254 Binary files /dev/null and b/.DS_Store differ diff --git a/.theos/_/DEBIAN/control b/.theos/_/DEBIAN/control new file mode 100644 index 0000000..3e3951f --- /dev/null +++ b/.theos/_/DEBIAN/control @@ -0,0 +1,10 @@ +Package: com.burritoz.testing +Name: Dockify +Depends: mobilesubstrate, preferenceloader, com.saurik.substrate.safemode, ws.hbang.common (>=1.13) +Architecture: iphoneos-arm +Description: A very noice tweak to configure the dock a bit more... +Maintainer: burrit0z +Author: burrit0z +Section: Tweaks +Version: 1.0.0b-1+debug +Installed-Size: 348 diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib b/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.dylib new file mode 100755 index 0000000..a25fd35 Binary files /dev/null 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 new file mode 100644 index 0000000..10dc654 --- /dev/null +++ b/.theos/_/Library/MobileSubstrate/DynamicLibraries/testing.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.apple.springboard" ); }; } diff --git a/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Info.plist b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Info.plist new file mode 100644 index 0000000..a788427 --- /dev/null +++ b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + dockifyprefs + CFBundleIdentifier + com.burritoz.dockifyprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NSPrincipalClass + burRootListController + + diff --git a/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Root.plist b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Root.plist new file mode 100644 index 0000000..7ed5765 --- /dev/null +++ b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/Root.plist @@ -0,0 +1,105 @@ + + + + + items + + + cell + PSStaticTextCell + label + Dockify by Burrit0z + + + cell + PSGroupCell + label + Transparent Toggle (overrides custom opcaity): + + + cell + PSSwitchCell + default + + defaults + com.burritoz.dockifyprefs + key + transparent + label + Transparent Dock + + + cell + PSGroupCell + label + Hide Dock (overrides custom height): + + + cell + PSSwitchCell + default + + defaults + com.burritoz.dockifyprefs + key + hidden + label + Hide (kinda) + + + cell + PSGroupCell + label + Dock Height Multiplier (1 default): + + + cell + PSEditTextCell + default + 1 + defaults + com.burritoz.dockifyprefs + key + setHeight + placeholder + Enter value greater than 0 + isDecimalPad + + keyboard + numbers + + + cell + PSGroupCell + label + Custom Opacity Multiplier (0-1): + + + cell + PSEditTextCell + default + 1 + defaults + com.burritoz.dockifyprefs + key + customOpacity + placeholder + Will not be set if transparent is on + isDecimalPad + + keyboard + numbers + + + cell + PSButtonCell + label + Respring + action + respring: + + + title + Dockify + + diff --git a/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/dockifyprefs b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/dockifyprefs new file mode 100755 index 0000000..0e22f22 Binary files /dev/null and b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/dockifyprefs differ diff --git a/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/icon.png b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/icon.png new file mode 100644 index 0000000..fec35fa Binary files /dev/null and b/.theos/_/Library/PreferenceBundles/dockifyprefs.bundle/icon.png differ diff --git a/.theos/_/Library/PreferenceLoader/Preferences/dockifyprefs.plist b/.theos/_/Library/PreferenceLoader/Preferences/dockifyprefs.plist new file mode 100644 index 0000000..37bfd50 --- /dev/null +++ b/.theos/_/Library/PreferenceLoader/Preferences/dockifyprefs.plist @@ -0,0 +1,21 @@ + + + + + entry + + bundle + dockifyprefs + cell + PSLinkCell + detail + burRootListController + icon + icon.png + isController + + label + Dockify + + + diff --git a/.theos/build_session b/.theos/build_session new file mode 100644 index 0000000..e69de29 diff --git a/.theos/fakeroot b/.theos/fakeroot new file mode 100644 index 0000000..e69de29 diff --git a/.theos/last_package b/.theos/last_package new file mode 100644 index 0000000..5b3e223 --- /dev/null +++ b/.theos/last_package @@ -0,0 +1 @@ +./packages/com.burritoz.testing_1.0.0b-1+debug_iphoneos-arm.deb diff --git a/.theos/obj/debug/.stamp b/.theos/obj/debug/.stamp new file mode 100644 index 0000000..e69de29 diff --git a/.theos/obj/debug/arm64/Tweak.x.b761c000.Td b/.theos/obj/debug/arm64/Tweak.x.b761c000.Td new file mode 100644 index 0000000..1be3b57 --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.x.b761c000.Td @@ -0,0 +1,26 @@ +/Users/carsonzielinski/Documents/testing/.theos/obj/debug/arm64/Tweak.x.b761c000.o: \ + /Users/carsonzielinski/Documents/testing/.theos/obj/debug/arm64/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.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/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.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/include/substrate.h: diff --git a/.theos/obj/debug/arm64/Tweak.x.b761c000.o b/.theos/obj/debug/arm64/Tweak.x.b761c000.o new file mode 100644 index 0000000..5c0f624 Binary files /dev/null and b/.theos/obj/debug/arm64/Tweak.x.b761c000.o differ diff --git a/.theos/obj/debug/arm64/Tweak.x.m b/.theos/obj/debug/arm64/Tweak.x.m new file mode 100644 index 0000000..cc98b9e --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.x.m @@ -0,0 +1,72 @@ +#line 1 "Tweak.x" +#import +#import + +static BOOL transparent; +static BOOL hidden; +static double setHeight; +static double customOpacity; + +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; +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); + +#line 11 "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) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); + }else if (transparent) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, 0.0); + } else { + NSLog(@"Dock not Transparent, no custom opacity\n"); + } +} + +static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + if (hidden) { + return (-500); + } else { + return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); + } + } + + + +static __attribute__((constructor)) void _logosLocalCtor_eb769390(int __unused argc, char __unused **argv, char __unused **envp) { + preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; + [preferences registerDefaults:@{ + @"setHeight": @1, + @"customOpacity": @1, + @"hidden": @NO + }]; + [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"]; +} +static __attribute__((constructor)) void _logosLocalInit() { +{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);} } +#line 44 "Tweak.x" diff --git a/.theos/obj/debug/arm64/burRootListController.m.e1c44485.Td b/.theos/obj/debug/arm64/burRootListController.m.e1c44485.Td new file mode 100644 index 0000000..9faaf93 --- /dev/null +++ b/.theos/obj/debug/arm64/burRootListController.m.e1c44485.Td @@ -0,0 +1,56 @@ +/Users/carsonzielinski/Documents/testing/.theos/obj/debug/arm64/burRootListController.m.e1c44485.o: \ + burRootListController.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + burRootListController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSListController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSViewController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSTableCell.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSSpecifier.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBPackageNameHeaderCell.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSHeaderFooterView.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBRespringController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +burRootListController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSListController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSViewController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSTableCell.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSSpecifier.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBPackageNameHeaderCell.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSHeaderFooterView.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBRespringController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: diff --git a/.theos/obj/debug/arm64/burRootListController.m.e1c44485.o b/.theos/obj/debug/arm64/burRootListController.m.e1c44485.o new file mode 100644 index 0000000..7822bfd Binary files /dev/null and b/.theos/obj/debug/arm64/burRootListController.m.e1c44485.o differ diff --git a/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs b/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs new file mode 100755 index 0000000..e03c06a Binary files /dev/null and b/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs differ 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 new file mode 100644 index 0000000..ef47890 --- /dev/null +++ b/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.dockifyprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + 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 new file mode 100644 index 0000000..00714a8 Binary files /dev/null and b/.theos/obj/debug/arm64/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs differ diff --git a/.theos/obj/debug/arm64/testing.dylib b/.theos/obj/debug/arm64/testing.dylib new file mode 100755 index 0000000..525fdf3 Binary files /dev/null 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 new file mode 100644 index 0000000..6823c79 --- /dev/null +++ b/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.testing.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + 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 new file mode 100644 index 0000000..03c0551 Binary files /dev/null and b/.theos/obj/debug/arm64/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib differ diff --git a/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.Td b/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.Td new file mode 100644 index 0000000..6752ac8 --- /dev/null +++ b/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.Td @@ -0,0 +1,26 @@ +/Users/carsonzielinski/Documents/testing/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.o: \ + /Users/carsonzielinski/Documents/testing/.theos/obj/debug/arm64e/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.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/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.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/include/substrate.h: diff --git a/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.o b/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.o new file mode 100644 index 0000000..c6d12c9 Binary files /dev/null and b/.theos/obj/debug/arm64e/Tweak.x.6e9da55c.o differ diff --git a/.theos/obj/debug/arm64e/Tweak.x.m b/.theos/obj/debug/arm64e/Tweak.x.m new file mode 100644 index 0000000..cc98b9e --- /dev/null +++ b/.theos/obj/debug/arm64e/Tweak.x.m @@ -0,0 +1,72 @@ +#line 1 "Tweak.x" +#import +#import + +static BOOL transparent; +static BOOL hidden; +static double setHeight; +static double customOpacity; + +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; +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); + +#line 11 "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) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, customOpacity); + }else if (transparent) { + _logos_orig$_ungrouped$SBDockView$setBackgroundAlpha$(self, _cmd, 0.0); + } else { + NSLog(@"Dock not Transparent, no custom opacity\n"); + } +} + +static double _logos_method$_ungrouped$SBDockView$dockHeight(_LOGOS_SELF_TYPE_NORMAL SBDockView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + if (hidden) { + return (-500); + } else { + return (_logos_orig$_ungrouped$SBDockView$dockHeight(self, _cmd)*setHeight); + } + } + + + +static __attribute__((constructor)) void _logosLocalCtor_eb769390(int __unused argc, char __unused **argv, char __unused **envp) { + preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; + [preferences registerDefaults:@{ + @"setHeight": @1, + @"customOpacity": @1, + @"hidden": @NO + }]; + [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"]; +} +static __attribute__((constructor)) void _logosLocalInit() { +{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);} } +#line 44 "Tweak.x" diff --git a/.theos/obj/debug/arm64e/burRootListController.m.bbcb89c4.Td b/.theos/obj/debug/arm64e/burRootListController.m.bbcb89c4.Td new file mode 100644 index 0000000..b479df3 --- /dev/null +++ b/.theos/obj/debug/arm64e/burRootListController.m.bbcb89c4.Td @@ -0,0 +1,56 @@ +/Users/carsonzielinski/Documents/testing/.theos/obj/debug/arm64e/burRootListController.m.bbcb89c4.o: \ + burRootListController.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + burRootListController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSListController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSViewController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSTableCell.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSSpecifier.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBPackageNameHeaderCell.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSHeaderFooterView.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBRespringController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +burRootListController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSListController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSViewController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSTableCell.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSSpecifier.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBPackageNameHeaderCell.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSHeaderFooterView.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBRespringController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: diff --git a/.theos/obj/debug/arm64e/burRootListController.m.bbcb89c4.o b/.theos/obj/debug/arm64e/burRootListController.m.bbcb89c4.o new file mode 100644 index 0000000..0158f36 Binary files /dev/null and b/.theos/obj/debug/arm64e/burRootListController.m.bbcb89c4.o differ diff --git a/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs b/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs new file mode 100755 index 0000000..b9db0b3 Binary files /dev/null and b/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs differ 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 new file mode 100644 index 0000000..ef47890 --- /dev/null +++ b/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.dockifyprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + 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 new file mode 100644 index 0000000..6d57f4c Binary files /dev/null and b/.theos/obj/debug/arm64e/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs differ diff --git a/.theos/obj/debug/arm64e/testing.dylib b/.theos/obj/debug/arm64e/testing.dylib new file mode 100755 index 0000000..3bd2313 Binary files /dev/null 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 new file mode 100644 index 0000000..6823c79 --- /dev/null +++ b/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.testing.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + 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 new file mode 100644 index 0000000..c4b707b Binary files /dev/null and b/.theos/obj/debug/arm64e/testing.dylib.dSYM/Contents/Resources/DWARF/testing.dylib differ diff --git a/.theos/obj/debug/armv7/burRootListController.m.74bc452e.Td b/.theos/obj/debug/armv7/burRootListController.m.74bc452e.Td new file mode 100644 index 0000000..3eecbdc --- /dev/null +++ b/.theos/obj/debug/armv7/burRootListController.m.74bc452e.Td @@ -0,0 +1,56 @@ +/Users/carsonzielinski/Documents/testing/.theos/obj/debug/armv7/burRootListController.m.74bc452e.o: \ + burRootListController.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + burRootListController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSListController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSViewController.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSTableCell.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSSpecifier.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBPackageNameHeaderCell.h \ + /Users/carsonzielinski/Documents/theos/include/Preferences/PSHeaderFooterView.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBRespringController.h \ + /Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +burRootListController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSListController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSViewController.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSTableCell.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSSpecifier.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/CepheiPrefs.framework/Headers/HBPackageNameHeaderCell.h: + +/Users/carsonzielinski/Documents/theos/include/Preferences/PSHeaderFooterView.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBRespringController.h: + +/Users/carsonzielinski/Documents/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: diff --git a/.theos/obj/debug/armv7/burRootListController.m.74bc452e.o b/.theos/obj/debug/armv7/burRootListController.m.74bc452e.o new file mode 100644 index 0000000..eb252e9 Binary files /dev/null and b/.theos/obj/debug/armv7/burRootListController.m.74bc452e.o differ diff --git a/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs b/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs new file mode 100755 index 0000000..41dca5d Binary files /dev/null and b/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs differ 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 new file mode 100644 index 0000000..ef47890 --- /dev/null +++ b/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.dockifyprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + 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 new file mode 100644 index 0000000..89a234f Binary files /dev/null and b/.theos/obj/debug/armv7/dockifyprefs.bundle/dockifyprefs.dSYM/Contents/Resources/DWARF/dockifyprefs differ diff --git a/.theos/obj/debug/dockifyprefs.bundle/Info.plist b/.theos/obj/debug/dockifyprefs.bundle/Info.plist new file mode 100644 index 0000000..a788427 --- /dev/null +++ b/.theos/obj/debug/dockifyprefs.bundle/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + dockifyprefs + CFBundleIdentifier + com.burritoz.dockifyprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NSPrincipalClass + burRootListController + + diff --git a/.theos/obj/debug/dockifyprefs.bundle/Root.plist b/.theos/obj/debug/dockifyprefs.bundle/Root.plist new file mode 100644 index 0000000..7ed5765 --- /dev/null +++ b/.theos/obj/debug/dockifyprefs.bundle/Root.plist @@ -0,0 +1,105 @@ + + + + + items + + + cell + PSStaticTextCell + label + Dockify by Burrit0z + + + cell + PSGroupCell + label + Transparent Toggle (overrides custom opcaity): + + + cell + PSSwitchCell + default + + defaults + com.burritoz.dockifyprefs + key + transparent + label + Transparent Dock + + + cell + PSGroupCell + label + Hide Dock (overrides custom height): + + + cell + PSSwitchCell + default + + defaults + com.burritoz.dockifyprefs + key + hidden + label + Hide (kinda) + + + cell + PSGroupCell + label + Dock Height Multiplier (1 default): + + + cell + PSEditTextCell + default + 1 + defaults + com.burritoz.dockifyprefs + key + setHeight + placeholder + Enter value greater than 0 + isDecimalPad + + keyboard + numbers + + + cell + PSGroupCell + label + Custom Opacity Multiplier (0-1): + + + cell + PSEditTextCell + default + 1 + defaults + com.burritoz.dockifyprefs + key + customOpacity + placeholder + Will not be set if transparent is on + isDecimalPad + + keyboard + numbers + + + cell + PSButtonCell + label + Respring + action + respring: + + + title + Dockify + + diff --git a/.theos/obj/debug/dockifyprefs.bundle/dockifyprefs b/.theos/obj/debug/dockifyprefs.bundle/dockifyprefs new file mode 100755 index 0000000..0e22f22 Binary files /dev/null and b/.theos/obj/debug/dockifyprefs.bundle/dockifyprefs differ diff --git a/.theos/obj/debug/dockifyprefs.bundle/icon.png b/.theos/obj/debug/dockifyprefs.bundle/icon.png new file mode 100644 index 0000000..fec35fa Binary files /dev/null and b/.theos/obj/debug/dockifyprefs.bundle/icon.png differ diff --git a/.theos/obj/debug/testing.dylib b/.theos/obj/debug/testing.dylib new file mode 100755 index 0000000..a25fd35 Binary files /dev/null and b/.theos/obj/debug/testing.dylib differ diff --git a/.theos/packages/com.burritoz.testing-0.0.41b b/.theos/packages/com.burritoz.testing-0.0.41b new file mode 100644 index 0000000..7813681 --- /dev/null +++ b/.theos/packages/com.burritoz.testing-0.0.41b @@ -0,0 +1 @@ +5 \ No newline at end of file diff --git a/.theos/packages/com.burritoz.testing-1.0.0b b/.theos/packages/com.burritoz.testing-1.0.0b new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/.theos/packages/com.burritoz.testing-1.0.0b @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..28025b2 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +ARCHS = arm64 arm64e +INSTALL_TARGET_PROCESSES = SpringBoard + +include /Users/carsonzielinski/Documents/theos/makefiles/common.mk + +TWEAK_NAME = testing + +testing_FILES = Tweak.x +testing_CFLAGS = -fobjc-arc +testing_EXTRA_FRAMEWORKS += Cephei + +include /Users/carsonzielinski/Documents/theos/makefiles/tweak.mk +SUBPROJECTS += dockifyprefs +include $(THEOS_MAKE_PATH)/aggregate.mk diff --git a/Tweak.x b/Tweak.x new file mode 100644 index 0000000..b8d9a0b --- /dev/null +++ b/Tweak.x @@ -0,0 +1,43 @@ +#import +#import + +static BOOL transparent; +static BOOL hidden; +static double setHeight; +static double customOpacity; + +HBPreferences *preferences; + +%hook SBDockView +-(void)setBackgroundAlpha:(double)arg1 { + if (transparent == NO) { + %orig(customOpacity); + }else if (transparent) { + %orig(0.0); + } else { + NSLog(@"Dock not Transparent, no custom opacity\n"); + } +} + +-(double)dockHeight { + if (hidden) { + return (-500); + } else { + return (%orig*setHeight); + } + } + +%end + +%ctor { + preferences = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; + [preferences registerDefaults:@{ + @"setHeight": @1, + @"customOpacity": @1, + @"hidden": @NO + }]; + [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"]; +} diff --git a/control b/control new file mode 100644 index 0000000..962c5c5 --- /dev/null +++ b/control @@ -0,0 +1,9 @@ +Package: com.burritoz.testing +Name: Dockify +Depends: mobilesubstrate, preferenceloader, com.saurik.substrate.safemode, ws.hbang.common (>=1.13) +Version: 1.0.0b +Architecture: iphoneos-arm +Description: A very noice tweak to configure the dock a bit more... +Maintainer: burrit0z +Author: burrit0z +Section: Tweaks diff --git a/dockifyprefs/.DS_Store b/dockifyprefs/.DS_Store new file mode 100644 index 0000000..917119f Binary files /dev/null and b/dockifyprefs/.DS_Store differ diff --git a/dockifyprefs/Makefile b/dockifyprefs/Makefile new file mode 100644 index 0000000..b8cf995 --- /dev/null +++ b/dockifyprefs/Makefile @@ -0,0 +1,16 @@ +include /Users/carsonzielinski/Documents/theos/makefiles/common.mk + +BUNDLE_NAME = dockifyprefs + +dockifyprefs_FILES = burRootListController.m +dockifyprefs_INSTALL_PATH = /Library/PreferenceBundles +dockifyprefs_FRAMEWORKS = UIKit +dockifyprefs_PRIVATE_FRAMEWORKS = Preferences +dockifyprefs_CFLAGS = -fobjc-arc +dockifyprefs_EXTRA_FRAMEWORKS +=CepheiPrefs Cephei + +include /Users/carsonzielinski/Documents/theos/makefiles/bundle.mk + +internal-stage:: + $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END) + $(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/dockifyprefs.plist$(ECHO_END) diff --git a/dockifyprefs/Resources/Info.plist b/dockifyprefs/Resources/Info.plist new file mode 100644 index 0000000..a788427 --- /dev/null +++ b/dockifyprefs/Resources/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + dockifyprefs + CFBundleIdentifier + com.burritoz.dockifyprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NSPrincipalClass + burRootListController + + diff --git a/dockifyprefs/Resources/Root.plist b/dockifyprefs/Resources/Root.plist new file mode 100644 index 0000000..7ed5765 --- /dev/null +++ b/dockifyprefs/Resources/Root.plist @@ -0,0 +1,105 @@ + + + + + items + + + cell + PSStaticTextCell + label + Dockify by Burrit0z + + + cell + PSGroupCell + label + Transparent Toggle (overrides custom opcaity): + + + cell + PSSwitchCell + default + + defaults + com.burritoz.dockifyprefs + key + transparent + label + Transparent Dock + + + cell + PSGroupCell + label + Hide Dock (overrides custom height): + + + cell + PSSwitchCell + default + + defaults + com.burritoz.dockifyprefs + key + hidden + label + Hide (kinda) + + + cell + PSGroupCell + label + Dock Height Multiplier (1 default): + + + cell + PSEditTextCell + default + 1 + defaults + com.burritoz.dockifyprefs + key + setHeight + placeholder + Enter value greater than 0 + isDecimalPad + + keyboard + numbers + + + cell + PSGroupCell + label + Custom Opacity Multiplier (0-1): + + + cell + PSEditTextCell + default + 1 + defaults + com.burritoz.dockifyprefs + key + customOpacity + placeholder + Will not be set if transparent is on + isDecimalPad + + keyboard + numbers + + + cell + PSButtonCell + label + Respring + action + respring: + + + title + Dockify + + diff --git a/dockifyprefs/Resources/icon.png b/dockifyprefs/Resources/icon.png new file mode 100644 index 0000000..fec35fa Binary files /dev/null and b/dockifyprefs/Resources/icon.png differ diff --git a/dockifyprefs/burRootListController.h b/dockifyprefs/burRootListController.h new file mode 100644 index 0000000..51d38bb --- /dev/null +++ b/dockifyprefs/burRootListController.h @@ -0,0 +1,12 @@ +#import +#import +#import +#import +#import +#import +#import +#import +#import + +@interface burRootListController : PSListController +@end diff --git a/dockifyprefs/burRootListController.m b/dockifyprefs/burRootListController.m new file mode 100644 index 0000000..c9aafff --- /dev/null +++ b/dockifyprefs/burRootListController.m @@ -0,0 +1,21 @@ +#include "burRootListController.h" + +@implementation burRootListController + +- (NSArray *)specifiers { + if (!_specifiers) { + _specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self]; + } + + return _specifiers; +} + +-(void)respring:(PSSpecifier *)specifier { + PSTableCell *cell = [self cachedCellForSpecifier:specifier]; + cell.cellEnabled = NO; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + [HBRespringController respring]; + }); + } + +@end diff --git a/dockifyprefs/entry.plist b/dockifyprefs/entry.plist new file mode 100644 index 0000000..37bfd50 --- /dev/null +++ b/dockifyprefs/entry.plist @@ -0,0 +1,21 @@ + + + + + entry + + bundle + dockifyprefs + cell + PSLinkCell + detail + burRootListController + icon + icon.png + isController + + label + Dockify + + + diff --git a/packages/.DS_Store b/packages/.DS_Store new file mode 100644 index 0000000..c9fb15d Binary files /dev/null and b/packages/.DS_Store differ 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 new file mode 100644 index 0000000..8ca52b0 Binary files /dev/null and b/packages/com.burritoz.testing_1.0.0b-1+debug_iphoneos-arm.deb differ diff --git a/testing.plist b/testing.plist new file mode 100644 index 0000000..10dc654 --- /dev/null +++ b/testing.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.apple.springboard" ); }; }