• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setting color of a progress indicator?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting color of a progress indicator?


  • Subject: Re: setting color of a progress indicator?
  • From: David Remahl <email@hidden>
  • Date: Sun, 28 Apr 2002 09:15:09 +0200

Aqua themes are stored as bitmaps inside some system file. You can't change
them easily.

One idea I have is to draw the progress bar into an offscreen context and
rotate the hue of that before drawing it into the real context. I have no
idea how well that would work, though.

/ Regards, David Remahl

> Hmm, the tints seem to be a no-op. I can discern no difference between
> default & clear tints. Posing as NSColor doesn't affect anything
> either. The colorForTintColor: nevers gets called after I invoke
> setControlTint:, but it does if I manually invoke it (ie. [NSColor
> colorForTintColor:...]), so I know the posing is working.
>
> Now I am at a complete loss for how to change the color of the progress
> indicator. Any ideas?
>
> On Saturday, April 27, 2002, at 11:35 PM, Cryx wrote:
>
>> Is it possible to change the color of a progress indicator? It'd be
>> nice for a health indicator in a game to display red, orange, yellow,
>> or green for different percentiles. The closest I can find to color is
>> the setControlTint, which only has 2 documented values (experimentation
>> with other values yields no visible change).
>>
>> I notice that NSColor has a colorForTintColor:. I can't use a category
>> to "enhance" this method, so would posing as NSColor be a suitable
>> solution? I keep thinking that there must be a simpler way (almost
>> always is the case in cocoa).
>>
>> Daryn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: setting color of a progress indicator? (From: Cryx <email@hidden>)

  • Prev by Date: Re: setting color of a progress indicator?
  • Next by Date: Re: RegEx in cocoa, and where to dl PB+IB?
  • Previous by thread: Re: setting color of a progress indicator?
  • Next by thread: Re: setting color of a progress indicator?
  • Index(es):
    • Date
    • Thread