Skip to content

Commit 17bd432

Browse files
author
Mat Gadd
committed
Use default window background behind webviews, allow them to show through
1 parent 63c307c commit 17bd432

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Classes/Controllers/PBWebController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ - (void) awakeFromNib
4646
object:self.view.window];
4747

4848
finishedLoading = NO;
49+
50+
[self.view setDrawsBackground:NO];
51+
4952
[self.view setUIDelegate:self];
5053
[self.view setFrameLoadDelegate:self];
5154
[self.view setResourceLoadDelegate:self];

Classes/PBCommitList.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ @implementation PBCommitList
1616
@synthesize mouseDownPoint;
1717
@synthesize useAdjustScroll;
1818

19+
- (void)awakeFromNib
20+
{
21+
[super awakeFromNib];
22+
[webView setDrawsBackground:NO];
23+
}
24+
1925
- (NSDragOperation)draggingSession:(NSDraggingSession *)session sourceOperationMaskForDraggingContext:(NSDraggingContext)context
2026
{
2127
return NSDragOperationCopy;

Resources/XIBs/PBGitHistoryView.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
</webView>
601601
</subviews>
602602
</view>
603-
<color key="fillColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
603+
<color key="fillColor" name="windowBackgroundColor" catalog="System" colorSpace="catalog"/>
604604
</box>
605605
</subviews>
606606
</view>

0 commit comments

Comments
 (0)