[vlc-devel] Cosmetics

Georg Seifert georg.seifert at gmx.de
Sat Aug 23 19:14:46 CEST 2008


Hello,
You have to disable the window texture to see the effect.
that’s why you have to set the texture mask depending if you are on  
Leopard (disable it, and enable the bottomBoder) or on Tiger ( enable  
texture, the buttomBorder is not available on Tiger)

G
> Hi Georg,
>
> I tried it, but I can't notice any changes. We have been already using
> a textured window for some times now.
>
> Pierre.
>
> On Aug 23, 2008, at 5:39 PM, Georg Seifert wrote:
>
>> Hello,
>>
>> I would like to so a small cosmetic change on the main video window  
>> in
>> Leopard.
>>
>>
>> I just cant find the complete code (but I saw some example some time
>> ago).
>>
>> I use the initWithContentRect... in a NSWindow subclass in on of my
>> apps but without the ifdefs. I put them in in Mail I do not find the
>> code to distinguish Tiger and leopard right now but this should be
>> easy.
>>
>> - (id)initWithContentRect:(NSRect)contentRect styleMask:
>> (NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
>> defer:(BOOL)deferCreation
>> {
>> #ifndef TIGER
>> 	windowStyle |= NSTexturedBackgroundWindowMask;
>> #endif
>> 	self = [super initWithContentRect:contentRect styleMask:windowStyle
>> backing:bufferingType defer:deferCreation];
>> 	
>> 	if (self) {
>> #ifndef TIGER
>> 		[self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
>> #endif
>> 	}
>> 	return self;
>> }
>>
>> if someone could try this with VLC and commit it?
>> Regards
>> Georg
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list