MSInstanceMessage0(CGImageRef, SBIconLabel, buildLabelImage) {
bool docked((MSHookIvar<unsigned>(self, "_inDock") & 0x2) != 0);
- WBStringDrawingState labelState = {NULL, 0, [NSString stringWithFormat:@""
- "color: %@;"
- ,
- (docked || !SummerBoard_ ? @"white" : @"#b3b3b3")
- ], docked ? @"DockedIconLabelStyle" : @"UndockedIconLabelStyle"};
+ WBStringDrawingState labelState = {NULL, 0, @""
+ "color: white;"
+ , docked ? @"DockedIconLabelStyle" : @"UndockedIconLabelStyle"};
stringDrawingState_ = &labelState;
NSString *path([NSString stringWithFormat:@"%@/UISounds/%@", theme, file]);
if ([Manager_ fileExistsAtPath:path]) {
strcpy(a1, [path UTF8String]);
- continue;
+ break;
}
}
}
WBRename(SBDockIconListView, setFrame:, setFrame$);
MSHookMessage(object_getClass($SBDockIconListView), @selector(shouldShowNewDock), &$SBDockIconListView$shouldShowNewDock, &_SBDockIconListView$shouldShowNewDock);
- if (kCFCoreFoundationVersionNumber < 600)
+ if (kCFCoreFoundationVersionNumber < 600 || SummerBoard_)
WBRename(SBIconLabel, drawRect:, drawRect$);
else
WBRename(SBIconLabel, buildLabelImage, buildLabelImage);