Add theme for CPShadowView

This commit is contained in:
Antoine Mercadal
2013-01-09 17:49:22 -08:00
parent 2ab0f494b4
commit 5dee254fca
17 changed files with 44 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

+44
View File
@@ -1778,6 +1778,50 @@ var themedButtonValues = nil,
return levelIndicator;
}
+ (CPShadowView)themedShadowView
{
var shadowView = [[CPShadowView alloc] initWithFrame:CGRectMakeZero()],
lightColor = PatternColor(
[
[@"shadow-view-light-top-left.png", 9.0, 9.0],
[@"shadow-view-light-top.png", 1.0, 9.0],
[@"shadow-view-light-top-right.png", 9.0, 9.0],
[@"shadow-view-light-left.png", 9.0, 1.0],
nil,
[@"shadow-view-light-right.png", 9.0, 1.0],
[@"shadow-view-light-bottom-left.png", 9.0, 9.0],
[@"shadow-view-light-bottom.png", 1.0, 9.0],
[@"shadow-view-light-bottom-right.png", 9.0, 9.0]
]),
heavyColor = PatternColor(
[
[@"shadow-view-heavy-top-left.png", 17.0, 17.0],
[@"shadow-view-heavy-top.png", 1.0, 17.0],
[@"shadow-view-heavy-top-right.png", 17.0, 17.0],
[@"shadow-view-heavy-left.png", 17.0, 1.0],
nil,
[@"shadow-view-heavy-right.png", 17.0, 1.0],
[@"shadow-view-heavy-bottom-left.png", 17.0, 17.0],
[@"shadow-view-heavy-bottom.png", 1.0, 17.0],
[@"shadow-view-heavy-bottom-right.png", 17.0, 17.0]
]),
themedShadowViewValues =
[
[@"bezel-color", lightColor, CPThemeStateShadowViewLight],
[@"bezel-color", heavyColor, CPThemeStateShadowViewHeavy],
[@"content-inset", CGInsetMake(3.0, 3.0, 5.0, 3.0), CPThemeStateShadowViewLight],
[@"content-inset", CGInsetMake(5.0, 7.0, 5.0, 7.0), CPThemeStateShadowViewHeavy]
];
[self registerThemeValues:themedShadowViewValues forView:shadowView];
return shadowView;
}
+(_CPWindowView)themedWindowView
{
var windowView = [[_CPWindowView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)],