[vlc-devel] macosx window border

Georg Seifert georg.seifert at gmx.de
Thu Apr 9 01:10:07 CEST 2009


hello,

Can someone please add this to modules/gui/macosx/embeddedwindow.m. As  
vlc targets Leopard, it should use the right look.

- (id)initWithContentRect:(NSRect)contentRect styleMask:  
(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType  
defer:(BOOL)deferCreation
{
	BOOL useTextured = YES;
	if([[NSWindow class]  
instancesRespondToSelector 
:@selector(setContentBorderThickness:forEdge:)])
	{
		useTextured = NO;
		windowStyle ^= NSTexturedBackgroundWindowMask;
	}
	self = [super initWithContentRect:contentRect styleMask:windowStyle  
backing:bufferingType defer:deferCreation];
	if(!useTextured)
    {
		[self setContentBorderThickness:28.0 forEdge:NSMinYEdge];
	}
	return self;
}
You can see the difference:
www.schriftgestaltung.de/dateien/Leopard.png
www.schriftgestaltung.de/dateien/Tiger.png

I earlier did some work on the button to resemble the leopard look and  
even could change it to the supposed Snow Leopard QuickTime look, if  
you are interested.

Georg



:::::::::::::::::::::::::::
Georg Seifert
type and graphic design

www.schriftgestaltung.de









More information about the vlc-devel mailing list