Maintainer: burrit0z | Maintainer: burrit0z | ||||
Author: burrit0z | Author: burrit0z | ||||
Section: Tweaks | Section: Tweaks | ||||
Version: 1.2-5+debug | |||||
Version: 1.2-7+debug | |||||
Installed-Size: 412 | Installed-Size: 412 |
./packages/com.burritoz.testing_1.2-5+debug_iphoneos-arm.deb | |||||
./packages/com.burritoz.testing_1.2-7+debug_iphoneos-arm.deb |
#line 1 "Tweak.x" | |||||
#import <SpringBoard/SBDockIconListView.h> | |||||
#import <SpringBoard/SBDockView.h> | |||||
#import <SpringBoard/SBIconListView.h> | |||||
#import <SpringBoard/SpringBoard.h> | |||||
#import <Cephei/HBPreferences.h> | |||||
static BOOL transparent; | |||||
static BOOL hidden; | |||||
static double setHeight; | |||||
static double customOpacity; | |||||
static NSInteger setIconNumber; | |||||
HBPreferences *preferences; | |||||
#include <substrate.h> | |||||
#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" |
#line 1 "Tweak.x" | #line 1 "Tweak.x" | ||||
#import <SpringBoard/SBDockIconListView.h> | #import <SpringBoard/SBDockIconListView.h> | ||||
#import <SpringBoard/SBDockView.h> | #import <SpringBoard/SBDockView.h> | ||||
#import <SpringBoard/SBIconListView.h> | #import <SpringBoard/SBIconListView.h> | ||||
#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 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" | |||||
} | } | ||||
} | } | ||||
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 = [[HBPreferences alloc] initWithIdentifier:@"com.burritoz.dockifyprefs"]; | ||||
[preferences registerDefaults:@{ | [preferences registerDefaults:@{ | ||||
@"setHeight": @1, | @"setHeight": @1, | ||||
[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);} } | |||||
#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" |
#line 1 "Tweak.x" | |||||
#import <SpringBoard/SBDockIconListView.h> | |||||
#import <SpringBoard/SBDockView.h> | |||||
#import <SpringBoard/SBIconListView.h> | |||||
#import <SpringBoard/SpringBoard.h> | |||||
#import <Cephei/HBPreferences.h> | |||||
static BOOL transparent; | |||||
static BOOL hidden; | |||||
static double setHeight; | |||||
static double customOpacity; | |||||
static NSInteger setIconNumber; | |||||
HBPreferences *preferences; | |||||
#include <substrate.h> | |||||
#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" |
5 | |||||
7 |
INSTALL_TARGET_PROCESSES = SpringBoard SpringBoardHome | |||||
# TARGET = simulator:clang::7.0 | |||||
# ARCHS = x86_64 i386 | |||||
ARCHS = armv7s arm64 arm64e | ARCHS = armv7s arm64 arm64e | ||||
INSTALL_TARGET_PROCESSES = SpringBoard | |||||
include $(THEOS)/makefiles/common.mk | include $(THEOS)/makefiles/common.mk | ||||
//import needed files/headers | |||||
/*#import <SpringBoardHome/SBDockIconListView.h> | |||||
#import <SpringBoardHome/SBDockView.h> | |||||
#import <SpringBoardHome/SBIconListView.h> */ | |||||
//Set up stuff | |||||
#import <SpringBoard/SBDockIconListView.h> | #import <SpringBoard/SBDockIconListView.h> | ||||
#import <SpringBoard/SBDockView.h> | #import <SpringBoard/SBDockView.h> | ||||
#import <SpringBoard/SBIconListView.h> | #import <SpringBoard/SBIconListView.h> | ||||
#import <SpringBoard/SpringBoard.h> | #import <SpringBoard/SpringBoard.h> | ||||
#import <Cephei/HBPreferences.h> | #import <Cephei/HBPreferences.h> | ||||
@interface SBDockView | |||||
@end | |||||
@interface SBDockIconListView | |||||
@end | |||||
@interface SBIconListView | |||||
@end | |||||
//Set up variables for use with Cephei | //Set up variables for use with Cephei | ||||
static BOOL transparent; | static BOOL transparent; | ||||
static BOOL hidden; | static BOOL hidden; | ||||
} | } | ||||
} | } | ||||
+(NSInteger)iconColumnsForCurrentOrientation { | |||||
if (hidden) { | |||||
return (0); | |||||
} else { | |||||
return (setIconNumber); | |||||
} | |||||
} | |||||
%end | %end | ||||
%ctor { | %ctor { |