mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 10:42:19 +00:00
allow using regular, small and mini sizes from xCode and from code using setControlSize method. Available on CPTextField, CPStepper, CPDatePicker only for the moment
This commit is contained in:
1 parent
12c427a9cf
commit
5feac3a7ff
39 files changed
+182
-63
No files matched your search
+1
-2
@@ -193,7 +193,6 @@ var CPControlBlackColor = [CPColor blackColor];
|
||||
{
|
||||
_sendActionOn = CPLeftMouseUpMask;
|
||||
_trackingMouseDownFlags = 0;
|
||||
_controlSize = CPRegularControlSize;
|
||||
}
|
||||
|
||||
return self;
|
||||
@@ -213,7 +212,7 @@ var CPControlBlackColor = [CPColor blackColor];
|
||||
*/
|
||||
- (void)setControlSize:(CPControlSize)aControlSize
|
||||
{
|
||||
if (_controlSize == aControlSize)
|
||||
if (_controlSize === aControlSize)
|
||||
return;
|
||||
|
||||
[self unsetThemeState:[self controlSizeThemeState]];
|
||||
|
||||
Reference in new issue
Block a user