[vlc-commits] macosx: adapt fspanel layout to update time slider graphics
Felix Paul Kühne
git at videolan.org
Thu Dec 27 02:20:19 CET 2012
vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 27 00:24:11 2012 +0100| [d4526f98e26b51056a0188729a8eda51d9be72b4] | committer: Felix Paul Kühne
macosx: adapt fspanel layout to update time slider graphics
(cherry picked from commit 59d6ab773e2fcb7b112cee692ce34996491ce4b2)
Conflicts:
NEWS
modules/gui/macosx/fspanel.m
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=d4526f98e26b51056a0188729a8eda51d9be72b4
---
NEWS | 2 ++
modules/gui/macosx/fspanel.m | 8 ++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/NEWS b/NEWS
index abd4d7a..b4086b5 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ Changes between 2.0.5 and 2.0.6:
Mac OS X:
* Fix subtitle rendering resolution when using OS X's native fullscreen mode
+ * Improve fullscreen controller time slider with larger click target
+
Changes between 2.0.4 and 2.0.5:
--------------------------------
diff --git a/modules/gui/macosx/fspanel.m b/modules/gui/macosx/fspanel.m
index ad76588..9a59c58 100644
--- a/modules/gui/macosx/fspanel.m
+++ b/modules/gui/macosx/fspanel.m
@@ -435,9 +435,9 @@
/* time slider */
s_rc = [self frame];
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_fs_timeSlider = [[VLCFSTimeSlider alloc] initWithFrame: s_rc];
[o_fs_timeSlider setMinValue:0];
[o_fs_timeSlider setMaxValue:10000];
@@ -618,7 +618,7 @@
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
@@ -649,7 +649,7 @@
[[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];
}
More information about the vlc-commits
mailing list