Re: transparent window and transparent button problems
Re: transparent window and transparent button problems
- Subject: Re: transparent window and transparent button problems
- From: Craig Hunter <email@hidden>
- Date: Wed, 30 Nov 2005 09:02:52 -0500
> Message: 11
> Date: Tue, 29 Nov 2005 00:21:48 -0800
> From: "John C. Randolph" <email@hidden>
> Subject: Re: transparent window and transparent button problems
> To: Olivier Destrebecq <email@hidden>
> Cc: Cocoa Mailing List List Mailing <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> On Nov 24, 2005, at 9:10 AM, Olivier Destrebecq wrote:
>
>> I'm using RoundedFloatingPanel code from http://iratescotsman.com/
>> products/source/ and am running accross a problem.
>>
>> The text looks weird, and the button that i created using custom
>> transparent images are having a problem once they have been
>> pressed, it seems like extra white is added to the them.
>>
>> here is a link to screenshot
>> before buttons are pressed: http://otusweb.spymac.com/Picture2.png
>> once the buttons are pressed: http://otusweb.spymac.com/Picture1.png
>>
>> Anyone know what i need to do to fix this, seems like i'm not
>> setting something right
>
> Looks like you're drawing with the wrong compositing mode, and/or
> you're returning the wrong value from -isOpaque.
>
> -jcr
>
The text issue is due to the font smoothing pref you have set on your
system. Ever since I can remember, the OS font smoothing has done a lousy
job handling light colored text on a darker background (and I have filed
numerous bug reports which get closed, saying it's normal). The "standard
CRT" setting does OK, but all other settings create the ugly looking text as
shown in your screenshot. Try changing your font smoothing style to
standard and relaunch your app, I bet it will look much nicer. That's the
good news. Pursuing a permanent app-specific fix for this is a lot more
complicated.
As Uli suggested, the button type will correct the other issue -- try
momentary change.
Craig
--
Dr. Craig Hunter
NASA Langley Research Center
Configuration Aerodynamics Branch
email@hidden
(757) 864-3020
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden