It’s not crucial, but in my case it could help to make my plugin UI a bit more efficient.
I would like to switch to invert current color (black background/white letter)
(and import NSAppearance)
And you might need to set the background to NSColor.textBackgroundColor() (or any of the dynamic colors that is doing where you need. So maybe NSColor.windowBackgroundColor().
It’s work, my letter is white now but I’m using Vanilla Box to create a shape and change it’s background color and when I set this FillColor of this box to black, it’s like the box in above my letter.
All vanilla controls have an underlying Cocoa/AppKit object (mostly in the ._nsObject property). With them you can do whatever you like. Check the Apple docs for details.
If you add the text to the box, too it might become white automatically as that would happen in a dark mode context.
But I wonder why you like to do all that dark stuff in the first place.
And the GlyphView is a ‘group’ already so you can use it wherever you can add a group.