[o_bwd setContinuous:YES];
/* time slider */
- s_rc = [self frame];
+ // (surrounding progress view for swipe behaviour)
s_rc.origin.x = 15;
- s_rc.origin.y = 55;
+ s_rc.origin.y = 45;
s_rc.size.width = 518;
- s_rc.size.height = 9;
+ s_rc.size.height = 13;
+ o_progress_view = [[VLCProgressView alloc] initWithFrame: s_rc];
+ s_rc.origin.x = 0;
+ s_rc.origin.y = 0;
o_fs_timeSlider = [[VLCFSTimeSlider alloc] initWithFrame: s_rc];
[o_fs_timeSlider setMinValue:0];
[o_fs_timeSlider setMaxValue:10000];
[o_fs_timeSlider setAction: @selector(fsTimeSliderUpdate:)];
[[o_fs_volumeSlider cell] accessibilitySetOverrideValue:_NS("Position") forAttribute:NSAccessibilityTitleAttribute];
[[o_fs_timeSlider cell] accessibilitySetOverrideValue:_NS("Click and move the mouse while keeping the button pressed to use this slider to change current playback position.") forAttribute:NSAccessibilityDescriptionAttribute];
- [self addSubview: o_fs_timeSlider];
+ [self addSubview: o_progress_view];
+ [o_progress_view addSubview: o_fs_timeSlider];
/* volume slider */
s_rc = [self frame];
addImage(o_vol_sld_img, 26, 23, NSCompositeSourceOver);
addImage(o_vol_mute_img, 16, 18, NSCompositeSourceOver);
addImage(o_vol_max_img, 124, 18, NSCompositeSourceOver);
- addImage(o_time_sld_img, 15, 53, NSCompositeSourceOver);
+ addImage(o_time_sld_img, 15, 45, NSCompositeSourceOver);
}
@end
[[NSGraphicsContext currentContext] restoreGraphicsState];
NSRect knobRect = [[self cell] knobRectFlipped:NO];
- knobRect.origin.y+=7.5;
+ knobRect.origin.y+=4;
[[[NSColor blackColor] colorWithAlphaComponent:0.6] set];
[self drawKnobInRect: knobRect];
}