Done;  rdar://12617674 I also included a suggestion for a hasDarkBackground 
flag that'll switch to buttons like QuickTime Player uses because the shadow on 
the default ones looks weird on dark backgrounds.

On Nov 1, 2012, at 11:12 AM, Corbin Dunn wrote:

> hi nick,
> 
> No; you can't stretch it, but you can create a pattern image that is tall, 
> and appears to repeat or stretch. Other than that, the only official way to 
> customize a window is via a borderless custom window.
> 
> However, please do log bugs requesting that AppKit provide an easy way to 
> customize windows. It is good to hear from developers that they want this 
> functionality.
> 
> corbin
> 
> 
> On Nov 1, 2012, at 7:35 AM, Nick <eveningn...@gmail.com> wrote:
> 
>> Corbin, is it possible to make the background color pattern image stretch 
>> the picture across the window, instead of repeating it?. If not, is dealing 
>> with borderless window the only way to get this functionality (like, having 
>> a custom colored title bar, and white title bar text)?
>> Thank you
>> 
>> 
>> 
>> 2012/11/1 Nick <eveningn...@gmail.com>
>> Thanks Corbin, it works great (unfortunately I can't draw the gradient 
>> depending on the window size (so it's always white on top and black on 
>> bottom, no matter how high the window is, for example), but I guess that 
>> still gives possibilities for skinning).. 
>> I will join the Iain's question.. Is it possible to somehow alter the color 
>> of the title text? Or at least set the title to @"", and draw manually 
>> NSAttributedString in that title area?
>> 
>> 
>> 2012/11/1 iain <i...@sleepfive.com>
>> Hi Corbin, sorry for semi-hijacking the thread
>> 
>> On Wed, Oct 31, 2012 at 8:17 PM, Corbin Dunn <corb...@apple.com> wrote:
>> 
>>> I am wondering if anyone created customized windows like this or reverse
>>> engineered this NSThemeFrame? Maybe there are any articles on the internet
>>> that I have missed (actually the link I gave in the beginning is the only
>>> one I have found on this topic). Somehow Apple's iCalendar works pretty
>>> fast on 10.7, while my app doesn't..
>> 
>> Calendar uses the public API of setBackgroundColor: on the window, and sets 
>> it to a pattern color. That is it.
>> 
>> 
>> When you use setBackgroundColor: on the window, is there a way to get the 
>> titlebar text to draw in a different colour? When you set the background to 
>> a dark colour, the titlebar text is still drawn dark with a light highlight 
>> so it looks quite bad.
>> 
>> thanks,
>> iain
>> 
>> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/lrucker%40vmware.com
> 
> This email sent to lruc...@vmware.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to