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

macosx: enlarge the time slider and move respective items around in the...

macosx: enlarge the time slider and move respective items around in the embedded vout window in case no window resize control is displayed
parent 69886fe3
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -41,6 +41,9 @@
IBOutlet id o_btn_volume_down;
IBOutlet id o_volumeslider;
IBOutlet id o_btn_volume_up;
IBOutlet id o_backgroundimg_right;
IBOutlet id o_backgroundimg_middle;
IBOutlet id o_timeslider;
IBOutlet id o_main_pgbar;
IBOutlet id o_time;
......
......@@ -112,6 +112,35 @@
[self orderOut:self];
b_window_is_invisible = YES;
videoRatio = NSMakeSize( 0., 0. );
/* enlarge the time slider and move items around in case we have no window resize control */
if ([self showsResizeIndicator] == NO) {
NSRect view_rect;
view_rect = [o_backgroundimg_right frame];
[o_backgroundimg_right setFrame: NSMakeRect( view_rect.origin.x+15,
view_rect.origin.y,
view_rect.size.width,
view_rect.size.height )];
view_rect = [o_backgroundimg_middle frame];
[o_backgroundimg_middle setFrame: NSMakeRect( view_rect.origin.x,
view_rect.origin.y,
view_rect.size.width+15,
view_rect.size.height )];
view_rect = [o_timeslider frame];
[o_timeslider setFrame: NSMakeRect( view_rect.origin.x,
view_rect.origin.y,
view_rect.size.width+15,
view_rect.size.height )];
view_rect = [o_time frame];
[o_time setFrame: NSMakeRect( view_rect.origin.x+15,
view_rect.origin.y,
view_rect.size.width,
view_rect.size.height )];
}
}
- (void)controlTintChanged
......
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