diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom-left.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom-left.png new file mode 100644 index 000000000..8294f9821 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom-left.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom-right.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom-right.png new file mode 100644 index 000000000..1b6544ed0 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom-right.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom.png new file mode 100644 index 000000000..1559018e5 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-bottom.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-left.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-left.png new file mode 100644 index 000000000..51a4ad8a1 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-left.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-right.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-right.png new file mode 100644 index 000000000..6e443d483 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-right.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top-left.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top-left.png new file mode 100644 index 000000000..26f806cbb Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top-left.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top-right.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top-right.png new file mode 100644 index 000000000..607a7cbc0 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top-right.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top.png b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top.png new file mode 100644 index 000000000..9ecc292b8 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-heavy-top.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom-left.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom-left.png new file mode 100644 index 000000000..9869030cf Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom-left.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom-right.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom-right.png new file mode 100644 index 000000000..f0149cf72 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom-right.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom.png new file mode 100644 index 000000000..4fa1250f8 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-bottom.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-left.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-left.png new file mode 100644 index 000000000..ea7b5ffc5 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-left.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-right.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-right.png new file mode 100644 index 000000000..91f8fc242 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-right.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-top-left.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-top-left.png new file mode 100644 index 000000000..bb6b59f14 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-top-left.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-top-right.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-top-right.png new file mode 100644 index 000000000..0c31dfedd Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-top-right.png differ diff --git a/AppKit/Themes/Aristo2/Resources/shadow-view-light-top.png b/AppKit/Themes/Aristo2/Resources/shadow-view-light-top.png new file mode 100644 index 000000000..05e9291d0 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/shadow-view-light-top.png differ diff --git a/AppKit/Themes/Aristo2/ThemeDescriptors.j b/AppKit/Themes/Aristo2/ThemeDescriptors.j index 6d2853bd5..2066323dc 100644 --- a/AppKit/Themes/Aristo2/ThemeDescriptors.j +++ b/AppKit/Themes/Aristo2/ThemeDescriptors.j @@ -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)],