mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-01 16:33:35 +00:00
Merge branch 'master' of git@github.com:280north/cappuccino
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 424 B |
Binary file not shown.
|
After Width: | Height: | Size: 419 B |
Binary file not shown.
|
After Width: | Height: | Size: 420 B |
@@ -449,6 +449,41 @@
|
||||
return button;
|
||||
}
|
||||
|
||||
+ (CPRadioButton)themedMixedCheckBoxButton
|
||||
{
|
||||
button = [self themedCheckBoxButton];
|
||||
|
||||
[button setAllowsMixedState:YES];
|
||||
[button setState:CPMixedState];
|
||||
|
||||
var mixedSelectedColor =
|
||||
PatternColor([[CPThreePartImage alloc] initWithImageSlices:
|
||||
[
|
||||
[_CPCibCustomResource imageResourceWithName:"check-box-bezel-mixed-highlighted.png" size:CGSizeMake(15.0, 16.0)], nil, nil
|
||||
]
|
||||
isVertical:NO]),
|
||||
|
||||
mixedDisabledColor =
|
||||
PatternColor([[CPThreePartImage alloc] initWithImageSlices:
|
||||
[
|
||||
[_CPCibCustomResource imageResourceWithName:"check-box-bezel-mixed-disabled.png" size:CGSizeMake(15.0, 16.0)], nil, nil
|
||||
]
|
||||
isVertical:NO]),
|
||||
|
||||
mixedColor =
|
||||
PatternColor([[CPThreePartImage alloc] initWithImageSlices:
|
||||
[
|
||||
[_CPCibCustomResource imageResourceWithName:"check-box-bezel-mixed.png" size:CGSizeMake(15.0, 16.0)], nil, nil
|
||||
]
|
||||
isVertical:NO]);
|
||||
|
||||
[button setValue:mixedSelectedColor forThemeAttribute:@"bezel-color" inState:CPThemeStateBordered|CPThemeState("mixed")|CPThemeStateHighlighted];
|
||||
[button setValue:mixedColor forThemeAttribute:@"bezel-color" inState:CPThemeStateBordered|CPThemeState("mixed")];
|
||||
[button setValue:mixedDisabledColor forThemeAttribute:@"bezel-color" inState:CPThemeStateBordered|CPThemeState("mixed")|CPThemeStateDisabled];
|
||||
|
||||
return button;
|
||||
}
|
||||
|
||||
+ (CPPopUpButton)themedSegmentedControl
|
||||
{
|
||||
var segmentedControl = [[CPSegmentedControl alloc] initWithFrame:CGRectMake(0.0, 0.0, 0.0, 24.0)];
|
||||
|
||||
Reference in New Issue
Block a user