change colours for Dark Mode
how can I completely redraw the switch to update the _disabledBorderColor?
I tried overriding, and updating the _disabledBorderColor in:
- (void) setNeedsDisplay:(BOOL)needsDisplay
and while, the method is called when Dark Mode is enabled/disabled - the _disabledBorderColor in the switch does not change
This project doesn't support dark mode. I don't develop for MacOS anymore. I will accept PRs though.
its seems to not work with the color I have chosen: disabledControlTextColor. controlAccentColor works just fine like this:
- (void) setNeedsDisplay:(BOOL)needsDisplay
{
[super setNeedsDisplay:needsDisplay];
[self setUpLayers];
}
There is no property called disabledControlTextColor. Not every color in this project is configurable. Sorry, you're on your own.
ah, thats an NSColor.
I managed to get it working how I like using this fork:
https://github.com/Tibbs/ITSwitch
and adding this for immediate updating when Dark Mode is activated/deactivated:
- (void) setNeedsDisplay:(BOOL)needsDisplay
{
[super setNeedsDisplay:needsDisplay];
[self setUpLayers];
}