Skip to content
Snippets Groups Projects
Commit 3be5a474 authored by George Nachman's avatar George Nachman
Browse files

Use AMIndeterminateProgressIndicator in tabs with the light theme instead of...

Use AMIndeterminateProgressIndicator in tabs with the light theme instead of NSProgressIndicator because it's faster. See issue 4582.
parent ae42e3f0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -21,20 +21,18 @@
 
@implementation PSMProgressIndicator {
AMIndeterminateProgressIndicator *_lightIndicator;
NSProgressIndicator *_darkIndicator;
AMIndeterminateProgressIndicator *_darkIndicator;
BOOL _light;
}
 
- (id)initWithFrame:(NSRect)frameRect {
self = [super initWithFrame:frameRect];
if (self) {
_darkIndicator = [[NSProgressIndicator alloc] initWithFrame:self.bounds];
[_darkIndicator setStyle:NSProgressIndicatorSpinningStyle];
[_darkIndicator setControlSize:NSSmallControlSize];
_darkIndicator = [[AMIndeterminateProgressIndicator alloc] initWithFrame:self.bounds];
_darkIndicator.color = [NSColor colorWithCalibratedWhite:0 alpha:1];
[self addSubview:_darkIndicator];
 
_lightIndicator =
[[AMIndeterminateProgressIndicator alloc] initWithFrame:_darkIndicator.frame];
_lightIndicator = [[AMIndeterminateProgressIndicator alloc] initWithFrame:self.bounds];
_lightIndicator.color = [NSColor colorWithCalibratedWhite:0.8 alpha:1];
[self addSubview:_lightIndicator];
_lightIndicator.hidden = YES;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment