Re: Color fun with IBOutlet named "appNameLabel"
Re: Color fun with IBOutlet named "appNameLabel"
- Subject: Re: Color fun with IBOutlet named "appNameLabel"
- From: Graham Cox <email@hidden>
- Date: Mon, 23 Feb 2015 10:18:13 +1100
> On 11 Feb 2015, at 1:34 am, Markus Spoettl <email@hidden> wrote:
>
> The labels are all inside an NSVisualEffectsView which is in "behind window" mode with dark appearance. So all labels are white-ish. Almost. The app name label is black instead of white (despite being set up identically to the other labels on the window).
Hi Markus,
Are you certain they're set up identically? I noticed a similar thing recently with some labels coming up black and others responding to a change in highlighting (these were part of a view-based table row) by changing to white. I thought all of my labels were created equal, but on closer examination I found that for some of them were set to use 'Label Color' and others used 'Control Text Color'. Only the latter responds dynamically to highlighting/background changes - at least in a table row. Most controls use the latter setting, but Labels don't.
Having spotted it I fixed it and moved on without further investigation. I created the labels using IB's 'label' object which defaults to Label Color, changing this to Control Text Color fixed the issue.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden