From 43cb4e1065a7431d184e4b63bebdcf06292c636a Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Tue, 19 Jul 2016 16:35:07 +0200 Subject: [PATCH] macosx: Add tickmark drawing to VLCHUDSliderCell The Slider cell was using the tick mark drawing that the OS provided, which could cause them to be drawn with dark color on dark background on older OS X versions. This commit adds the missing tick mark drawing. --- modules/gui/macosx/VLCHUDSliderCell.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/gui/macosx/VLCHUDSliderCell.m b/modules/gui/macosx/VLCHUDSliderCell.m index 3413918dca..01fe5cab08 100644 --- a/modules/gui/macosx/VLCHUDSliderCell.m +++ b/modules/gui/macosx/VLCHUDSliderCell.m @@ -175,4 +175,17 @@ NSAffineTransform* RotationTransform(const CGFloat angle, const NSPoint point) [path fill]; } +- (void)drawTickMarks +{ + for (int i = 0; i < self.numberOfTickMarks; i++) { + NSRect tickMarkRect = [self rectOfTickMarkAtIndex:i]; + if (self.isEnabled) { + [_strokeColor setFill]; + } else { + [_disabledStrokeColor setFill]; + } + NSRectFill(tickMarkRect); + } +} + @end -- 2.20.1