Commit f4a16def authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed time slider alignment issue

Pointed by Damien
(cherry picked from commit 20484554dc35aecc15fdb8c492d6a9ad591c5695)
parent 198838bc
......@@ -118,6 +118,7 @@
{
NSImage *o_knob_img;
NSRect img_rect;
BOOL b_dark;
}
- (CGFloat)knobPosition;
......
......@@ -513,10 +513,13 @@ void _drawFrameInRect(NSRect frameRect)
- (void)awakeFromNib
{
if (config_GetInt( VLCIntf, "macosx-interfacestyle" ))
if (config_GetInt( VLCIntf, "macosx-interfacestyle" )) {
o_knob_img = [NSImage imageNamed:@"progression-knob_dark"];
else
b_dark = YES;
} else {
o_knob_img = [NSImage imageNamed:@"progression-knob"];
b_dark = NO;
}
img_rect.size = [o_knob_img size];
img_rect.origin.x = img_rect.origin.y = 0;
}
......@@ -554,7 +557,10 @@ void _drawFrameInRect(NSRect frameRect)
[[NSGraphicsContext currentContext] restoreGraphicsState];
NSRect knobRect = [[self cell] knobRectFlipped:NO];
knobRect.origin.y+=1;
if (b_dark)
knobRect.origin.y+=2;
else
knobRect.origin.y+=1;
[self drawKnobInRect: knobRect];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment