cappuccino/cappuccino — Issue #1451: Not allow to change the spinning Control size in CPProgressIndicator
Author: lynnchin
Created: 2012-02-09 09:23:33+00:00
State: open

Whilst I was working with the CPProgressIndicator control, I noticed there is one problem appears in

the code here, when we want to display the spinning wheel, it seems that we are not allow to set the control size to mini or small.

See code in AppKit/CPProgressIndicator.j below:

CPProgressIndicatorSpinningStyleColors[CPMiniControlSize] = [CPColor colorWithPatternImage:[[CPImage alloc] initWithContentsOfFile:
[bundle pathForResource:@"CPProgressIndicator/CPProgressIndicatorSpinningStyleRegular.gif"] size:CGSizeMake(64.0, 64.0)]];
CPProgressIndicatorSpinningStyleColors[CPSmallControlSize] = [CPColor colorWithPatternImage:[[CPImage alloc] initWithContentsOfFile:
[bundle pathForResource:@"CPProgressIndicator/CPProgressIndicatorSpinningStyleRegular.gif"] size:CGSizeMake(64.0, 64.0)]];
CPProgressIndicatorSpinningStyleColors[CPRegularControlSize] = [CPColor colorWithPatternImage:[[CPImage alloc] initWithContentsOfFile:
[bundle pathForResource:@"CPProgressIndicator/CPProgressIndicatorSpinningStyleRegular.gif"] size:CGSizeMake(64.0, 64.0)]];

And I noticed that all of them are pointing to CPProgressIndicatorSpinningStyleRegular.gif with the same size.