Quantcast
Channel: Adobe Community : Unanswered Discussions - Illustrator
Viewing all articles
Browse latest Browse all 41949

Label Colour in Cocoa Panel (AI CS6 OS X)

$
0
0

Hello all,

 

Lets say I have a plug-in that displays a floating panel implemented by Cocoa. Naturally I have some labels, buttons and other UI elements on my panel but I noticed that the text colour for labels and buttons is a dark grey colour (or whatever I've set it to in the XIB) and stays the same colour when I change the UI colour in the preferences (which is what I'd expect). Does anyone know of a way to make my panel text colour behave in the same way as the built-in Illustrator panels? i.e. when the UI colour is changed from light to dark, the text changes colour to suit?

 

I've fiddled with my label's colour in the XIB (in case there was something special I had to set it to) and I've scoured the SDK for some easy way to do it but to no avail. The only way I can think to achieve it is to pick up the preferences changed notifier, get the new UI brightness value and change my own text colour accordingly but it seemed a bit hackish.

 

It's trivial I know but it's the little things!

 

Thanks!

 

-W


Viewing all articles
Browse latest Browse all 41949

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>