diff --git a/MacDown/Code/Document/MPDocument.m b/MacDown/Code/Document/MPDocument.m index 9e43a313..5aa89afe 100644 --- a/MacDown/Code/Document/MPDocument.m +++ b/MacDown/Code/Document/MPDocument.m @@ -1288,12 +1288,17 @@ - (void)setupEditor [self.editor setValue:value forKey:key]; } + CGColorRef backgroundCGColor = self.editor.backgroundColor.CGColor; NSView *editorChrome = self.editor.enclosingScrollView.superview; + CALayer *layer = [CALayer layer]; - layer.backgroundColor = self.editor.backgroundColor.CGColor; - editorChrome.wantsLayer = YES; + layer.backgroundColor = backgroundCGColor; editorChrome.layer = layer; + layer = [CALayer layer]; + layer.backgroundColor = backgroundCGColor; + self.splitView.layer = layer; + [self.highlighter activate]; } diff --git a/MacDown/Localization/Base.lproj/MPDocument.xib b/MacDown/Localization/Base.lproj/MPDocument.xib index e1ba358a..0d62e688 100644 --- a/MacDown/Localization/Base.lproj/MPDocument.xib +++ b/MacDown/Localization/Base.lproj/MPDocument.xib @@ -40,7 +40,7 @@ - +