From 3bf2f63bf67334225fe48612e49b0071390a3b5e Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 28 May 2021 21:29:27 -0400 Subject: [PATCH] really make scroller background transparent. --- Ample/AutocompleteControl.m | 3 ++- Ample/Base.lproj/NewSlotView.xib | 2 +- Ample/TransparentScroller.m | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Ample/AutocompleteControl.m b/Ample/AutocompleteControl.m index dfa6bcb..b54876f 100644 --- a/Ample/AutocompleteControl.m +++ b/Ample/AutocompleteControl.m @@ -800,7 +800,8 @@ static void DrawString(NSString *str, NSDictionary *attr, CGRect rect) { -(void)drawRect:(NSRect)dirtyRect { - [[NSColor windowBackgroundColor] set]; + //[[NSColor windowBackgroundColor] set]; + [[NSColor clearColor] set]; NSRectFill(dirtyRect); [self drawKnob]; } diff --git a/Ample/Base.lproj/NewSlotView.xib b/Ample/Base.lproj/NewSlotView.xib index af25ecf..e72b614 100644 --- a/Ample/Base.lproj/NewSlotView.xib +++ b/Ample/Base.lproj/NewSlotView.xib @@ -19,7 +19,7 @@ - + diff --git a/Ample/TransparentScroller.m b/Ample/TransparentScroller.m index 20dfe9c..7e13c5a 100644 --- a/Ample/TransparentScroller.m +++ b/Ample/TransparentScroller.m @@ -12,11 +12,16 @@ - (void)drawRect:(NSRect)dirtyRect { //[super drawRect:dirtyRect]; + [[NSColor clearColor] set]; + NSRectFill(dirtyRect); + +#if 0 NSColor *color = _backgroundColor; if (color) { [color setFill]; NSRectFill(dirtyRect); } +#endif [self drawKnob]; }