- (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;
}
[[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];
}