• 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: Funny issue: one line in GUI is grey-ish
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Funny issue: one line in GUI is grey-ish


  • Subject: Re: Funny issue: one line in GUI is grey-ish
  • From: Ben Kennedy via Cocoa-dev <email@hidden>
  • Date: Sun, 9 Aug 2020 10:15:03 -0700

> On 9 Aug 2020, at 5:58 am, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> I have a simple app (status bar item) with a simple GUI.
> The funny thing is that one text line in the GUI is grey-ish,
> but NOT in the XIB in XCode ... and I can't determine why that is or how to
> correct it.

Interesting. After downloading your project and playing around with a few
things, and doing a bit of reading, I came to the conclusion that this effect
seems related to how UIKit renders buttons when displayed in a popover.

NSPopover has a property `appearance`, whose docs say “If no appearance is
specified, the popover’s effective appearance defaults to `vibrantLight`”. This
got me wondering, what if we change this to something else? Indeed, if you add
this line to your setup:

    prefs_popover_.appearance = NSAppearance(named: .aqua)

the button text stays opaque like in a normal window (and, to my eye,
everything else in the popover otherwise looks the same)!

cheers,

-ben

_______________________________________________

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

  • Follow-Ups:
    • Re: Funny issue: one line in GUI is grey-ish
      • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
References: 
 >Funny issue: one line in GUI is grey-ish (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Funny issue: one line in GUI is grey-ish
  • Next by Date: Re: Funny issue: one line in GUI is grey-ish
  • Previous by thread: Re: Funny issue: one line in GUI is grey-ish
  • Next by thread: Re: Funny issue: one line in GUI is grey-ish
  • Index(es):
    • Date
    • Thread