|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
%end |
|
|
%end |
|
|
%hook SBDockIconListView |
|
|
|
|
|
|
|
|
|
|
|
- (NSUInteger)iconColumnsForCurrentOrientation { |
|
|
|
|
|
if (hidden) { |
|
|
|
|
|
return (0); |
|
|
|
|
|
} else { |
|
|
|
|
|
return (setIconNumber); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
%end |
|
|
|
|
|
//fix for icons being off the page ios 13 |
|
|
//fix for icons being off the page ios 13 |
|
|
%hook SBIconListGridLayoutConfiguration |
|
|
%hook SBIconListGridLayoutConfiguration |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NSUInteger rows = MSHookIvar<NSUInteger>(self, "_numberOfPortraitRows"); |
|
|
NSUInteger rows = MSHookIvar<NSUInteger>(self, "_numberOfPortraitRows"); |
|
|
NSUInteger columns = MSHookIvar<NSUInteger>(self, "_numberOfPortraitColumns"); |
|
|
NSUInteger columns = MSHookIvar<NSUInteger>(self, "_numberOfPortraitColumns"); |
|
|
// dock |
|
|
// dock |
|
|
if (rows <= 2 && columns == 4) { |
|
|
|
|
|
|
|
|
if (rows < 2) { |
|
|
self.location = @"Dock"; |
|
|
self.location = @"Dock"; |
|
|
} else if (rows == 3 && columns == 3) { |
|
|
} else if (rows == 3 && columns == 3) { |
|
|
self.location = @"Folder"; |
|
|
self.location = @"Folder"; |