X-Git-Url: https://git.saurik.com/fiveicondock.git/blobdiff_plain/1aab65220f1ade3fd5a91d8b87e51189fe6d7f95..bddf654d370c44f9883520beed7c05453435a139:/Tweak.mm diff --git a/Tweak.mm b/Tweak.mm index 50f9246..8581f2b 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -25,14 +25,16 @@ static unsigned $SBButtonBar$count(SBButtonBar *self) { } static float $SBButtonBar$topIconPadding(SBButtonBar *self, SEL sel) { - return $SBButtonBar$count(self); + return 313370 + $SBButtonBar$count(self); } MSHook(void, SBIcon$setOrigin$, SBIcon *self, SEL sel, CGPoint origin) { unsigned count(origin.y); - //NSLog(@"C:%u=(%f,%f)", count, origin.x, origin.y); + if (count < 313370) + goto set; + count -= 313370; - if (count < 45 && count > 40) + if (count > 40) origin.x = 256; else if (count > 10 || count < 0) goto set;