Commit 846b3c55 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: some small improvements for !video-deco

- smaller min size (no need to have this big width here)
- no black borders while resize
(cherry picked from commit c2fe98bd7b3d87581a11c243c4ee85cc0ad912fd)

Conflicts:

	extras/package/macosx/Resources/English.lproj/MainMenu.xib
parent 49d1f5b7
...@@ -21,8 +21,13 @@ ...@@ -21,8 +21,13 @@
</object> </object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="4850"/> <integer value="2770"/>
<integer value="235"/>
<integer value="2730"/>
<integer value="4756"/>
<integer value="4722"/> <integer value="4722"/>
<integer value="4850"/>
<integer value="4948"/>
<integer value="915"/> <integer value="915"/>
<integer value="2730"/> <integer value="2730"/>
<integer value="1617"/> <integer value="1617"/>
...@@ -30,7 +35,6 @@ ...@@ -30,7 +35,6 @@
<integer value="21"/> <integer value="21"/>
<integer value="4948"/> <integer value="4948"/>
<integer value="4596"/> <integer value="4596"/>
<integer value="2770"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -4583,7 +4587,6 @@ LCAuLi4</string> ...@@ -4583,7 +4587,6 @@ LCAuLi4</string>
<nil key="NSViewClass"/> <nil key="NSViewClass"/>
<nil key="NSUserInterfaceItemIdentifier"/> <nil key="NSUserInterfaceItemIdentifier"/>
<string key="NSWindowContentMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string> <string key="NSWindowContentMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string>
<string key="NSWindowContentMinSize">{363, 203}</string>
<object class="NSView" key="NSWindowView" id="598483044"> <object class="NSView" key="NSWindowView" id="598483044">
<reference key="NSNextResponder"/> <reference key="NSNextResponder"/>
<int key="NSvFlags">256</int> <int key="NSvFlags">256</int>
...@@ -4806,7 +4809,6 @@ LCAuLi4</string> ...@@ -4806,7 +4809,6 @@ LCAuLi4</string>
<string key="NSReuseIdentifierKey">_NS:122</string> <string key="NSReuseIdentifierKey">_NS:122</string>
</object> </object>
<string key="NSScreenRect">{{0, 0}, {1280, 778}}</string> <string key="NSScreenRect">{{0, 0}, {1280, 778}}</string>
<string key="NSMinSize">{363, 225}</string>
<string key="NSMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string> <string key="NSMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string>
<string key="NSFrameAutosaveName">detachedvideowindow</string> <string key="NSFrameAutosaveName">detachedvideowindow</string>
<bool key="NSWindowIsRestorable">NO</bool> <bool key="NSWindowIsRestorable">NO</bool>
...@@ -12113,7 +12115,7 @@ LCAuLi4</string> ...@@ -12113,7 +12115,7 @@ LCAuLi4</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>{{461, 86}, {222, 363}}</string> <string>{{956, 323}, {302, 413}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
...@@ -12282,7 +12284,7 @@ LCAuLi4</string> ...@@ -12282,7 +12284,7 @@ LCAuLi4</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>{{519, 875}, {468, 20}}</string> <string>{{812, 736}, {468, 20}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
...@@ -12693,7 +12695,7 @@ LCAuLi4</string> ...@@ -12693,7 +12695,7 @@ LCAuLi4</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{396, 139}, {363, 239}}</string> <string>{{396, 139}, {363, 239}}</string>
<boolean value="NO"/> <boolean value="NO"/>
<boolean value="YES"/> <boolean value="NO"/>
<string>{363, 203}</string> <string>{363, 203}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
......
...@@ -299,14 +299,14 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -299,14 +299,14 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_detached_video_window setContentMinSize: NSMakeSize( 363., f_min_video_height + [o_detached_bottombar_view frame].size.height )]; [o_detached_video_window setContentMinSize: NSMakeSize( 363., f_min_video_height + [o_detached_bottombar_view frame].size.height )];
} }
else else
{ { // !b_video_deco:
if (b_dark_interface) if (b_dark_interface)
[self setContentMinSize:NSMakeSize(604., 288. + [o_titlebar_view frame].size.height)]; [self setContentMinSize:NSMakeSize(604., 288. + [o_titlebar_view frame].size.height)];
else else
[self setContentMinSize:NSMakeSize(604., 288.)]; [self setContentMinSize:NSMakeSize(604., 288.)];
[o_detached_bottombar_view setHidden:YES]; [o_detached_bottombar_view setHidden:YES];
[o_detached_video_window setContentMinSize: NSMakeSize( 363., f_min_video_height )]; [o_detached_video_window setContentMinSize: NSMakeSize( f_min_video_height, f_min_video_height )];
} }
[self setTitle: _NS("VLC media player")]; [self setTitle: _NS("VLC media player")];
...@@ -1146,7 +1146,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1146,7 +1146,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSRect contentRect = [videoWindow contentRectForFrameRect:videoWindowFrame]; NSRect contentRect = [videoWindow contentRectForFrameRect:videoWindowFrame];
float marginy = viewRect.origin.y + videoWindowFrame.size.height - contentRect.size.height; float marginy = viewRect.origin.y + videoWindowFrame.size.height - contentRect.size.height;
float marginx = contentRect.size.width - viewRect.size.width; float marginx = contentRect.size.width - viewRect.size.width;
if( b_dark_interface ) if( b_dark_interface && b_video_deco )
marginy += [o_titlebar_view frame].size.height; marginy += [o_titlebar_view frame].size.height;
proposedFrameSize.height = (proposedFrameSize.width - marginx) * nativeVideoSize.height / nativeVideoSize.width + marginy; proposedFrameSize.height = (proposedFrameSize.width - marginx) * nativeVideoSize.height / nativeVideoSize.width + marginy;
......
...@@ -612,10 +612,11 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -612,10 +612,11 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_msgs_refresh_btn setImage: [NSImage imageNamed: NSImageNameRefreshTemplate]]; [o_msgs_refresh_btn setImage: [NSImage imageNamed: NSImageNameRefreshTemplate]];
BOOL b_video_deco = config_GetInt( VLCIntf, "video-deco" );
/* yeah, we are done */ /* yeah, we are done */
b_nativeFullscreenMode = NO; b_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7 #ifdef MAC_OS_X_VERSION_10_7
if( OSX_LION ) if( OSX_LION && b_video_deco )
b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" ); b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" );
#endif #endif
......
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