Browse Source

hm

master
Burrit0z 4 years ago
parent
commit
c0d7152d3e
1 changed files with 15 additions and 13 deletions
  1. +15
    -13
      Tweak.x

+ 15
- 13
Tweak.x View File

//Set up stuff
//#import <SpringBoardHome/SBDockIconListView.h>
//#import <SpringBoardHome/SBDockView.h>
//#import <SpringBoardHome/SBIconListView.h>
//I looked at Kritanta's "Home Plus" tweak for help with ios13 stuff. I DID NOT
//copy anything, at least knowingly because these tweaks are simillar, please
//understand the code may be simillar becuase we are doing similar things.
//I am liscensing this under MIT, anyone can use anything they need to from here
#include <UIKit/UIKit.h>
#import <Cephei/HBPreferences.h> #import <Cephei/HBPreferences.h>


@interface SBDockView @interface SBDockView
@interface SBIconListView @interface SBIconListView
@end @end


@interface SBRootIconListView : UIView
+ (NSInteger)iconColumnsForInterfaceOrientation;
@end

@interface SBDockIconListView : SBRootIconListView
@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;
%hook SBDockView %hook SBDockView


//this deals with everything adjusting opacity/transparency //this deals with everything adjusting opacity/transparency
//ios 12 and 13
-(void)setBackgroundAlpha:(double)arg1 { -(void)setBackgroundAlpha:(double)arg1 {
if (transparent == NO && hidden == NO) { //if not transparent and not hidden if (transparent == NO && hidden == NO) { //if not transparent and not hidden
%orig(customOpacity); %orig(customOpacity);


%hook SBDockIconListView %hook SBDockIconListView


//ios 12
+(NSInteger)maxIcons { +(NSInteger)maxIcons {
if (hidden) { if (hidden) {
return (0); return (0);
} }
} }


-(BOOL)allowsAddingIconCount:(unsigned long long)arg1 {
if (hidden) {
return (0);
%orig(NO);
} else {
%orig(YES);
return (setIconNumber);
}
}
//ios13


%end %end



Loading…
Cancel
Save