From: Jay Freeman (saurik) Date: Fri, 21 Oct 2011 01:10:01 +0000 (+0000) Subject: Make SMS labels and timestamps transparent. X-Git-Tag: v0.9.3902~6 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/096012f04d14ce0d4b1b9a0f8dbe2c781d0b85e4 Make SMS labels and timestamps transparent. --- diff --git a/Library.mm b/Library.mm index f81c3ec..1b4a595 100644 --- a/Library.mm +++ b/Library.mm @@ -1319,6 +1319,7 @@ MSHook(void, SBStatusBarTimeView$drawRect$, SBStatusBarTimeView *self, SEL sel, @interface UIView (WinterBoard) - (bool) wb$isWBImageView; - (void) wb$logHierarchy; +- (void) wb$setBackgroundColor:(UIColor *)color; @end @implementation UIView (WinterBoard) @@ -1331,6 +1332,12 @@ MSHook(void, SBStatusBarTimeView$drawRect$, SBStatusBarTimeView *self, SEL sel, WBLogHierarchy(self); } +- (void) wb$setBackgroundColor:(UIColor *)color { + [self setBackgroundColor:color]; + for (UIView *child in [self subviews]) + [child wb$setBackgroundColor:color]; +} + @end @interface WBImageView : UIImageView { @@ -1539,12 +1546,13 @@ MSInstanceMessageHook1(void, CKMessageCell, addBalloonView, CKBalloonView *, bal MSInstanceMessageHook1(void, CKTranscriptCell, setBackgroundColor, UIColor *, color) { MSOldCall([UIColor clearColor]); + [[self contentView] wb$setBackgroundColor:[UIColor clearColor]]; } MSInstanceMessageHook2(id, CKTranscriptCell, initWithStyle,reuseIdentifier, int, style, NSString *, reuse) { if ((self = MSOldCall(style, reuse)) != nil) { [self setBackgroundColor:[UIColor clearColor]]; - [[self contentView] setBackgroundColor:[UIColor clearColor]]; + [[self contentView] wb$setBackgroundColor:[UIColor clearColor]]; } return self; }