The default color for the NSProgressIndicator is gray, but I want it to be white.
Is there anyone who knows how to do this? Please let me know.
Many thanks.
Subclass the NSProgressIndicator internal method how to do this
- (void)drawRect:(NSRect)dirtyRect { // Drawing code here. [self setControlTint:NSGraphiteControlTint]; CGContextSetBlendMode((CGContextRef)[[NSGraphicsContext currentContext] graphicsPort], kCGBlendModeSoftLight); [[[NSColor whiteColor] colorWithAlphaComponent:1] set]; [NSBezierPath fillRect:dirtyRect]; [super drawRect:dirtyRect]; }
Source: https://habr.com/ru/post/1502548/More articles:Dialogs general function - returns a boolean based on a user button click - androidorg.hsqldb.HsqlException: data exception: invalid character value for translation - javaOverriding tmux shortcuts - terminalBetter Javascript and html template file management: edit as many files as possible, but use them as one file - javascriptMaxReceivedMessageSize error in WCF - wcfEclipse - Run expression at point in code? - javaFrom Range Range to Range-Interval - oracleGet system time in milliseconds on android - javaРазделение элементов массива - javascriptHow to find out the actual refresh rate of a screen (not a rounded number) - windowsAll Articles