From a06fac531524472a24dadb1636c9845bb95c2f7b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 19 Oct 2011 06:10:21 +0000 Subject: [PATCH] Make transcript cells transparent. --- Library.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library.mm b/Library.mm index 42c4309..d7946b4 100644 --- a/Library.mm +++ b/Library.mm @@ -123,6 +123,7 @@ MSClassHook(UIToolbar) MSClassHook(CKMessageCell) MSClassHook(CKTimestampView) +MSClassHook(CKTranscriptCell) MSClassHook(CKTranscriptController) MSClassHook(CKTranscriptTableView) @@ -1456,6 +1457,13 @@ MSInstanceMessageHook1(void, CKMessageCell, addBalloonView, CKBalloonView *, bal [balloon 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]]; + } return self; +} + MSInstanceMessageHook2(id, CKMessageCell, initWithStyle,reuseIdentifier, int, style, NSString *, reuse) { if ((self = MSOldCall(style, reuse)) != nil) { [self setBackgroundColor:[UIColor clearColor]]; -- 2.45.2