diff --git a/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j b/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j index 26293bf4b..24faf9ba8 100644 --- a/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j +++ b/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j @@ -33,7 +33,14 @@ var _CPToolbarViewBackgroundColor = nil; + (CPColor)toolbarBackgroundColor { if (!_CPToolbarViewBackgroundColor) - _CPToolbarViewBackgroundColor = [CPColor colorWithPatternImage:[[CPImage alloc] initWithContentsOfFile:[[CPBundle bundleForClass:[_CPBorderlessBridgeWindowView class]] pathForResource:@"_CPToolbarView/_CPToolbarViewBackground.png"] size:CGSizeMake(1.0, 59.0)]]; + { + var bundle = [CPBundle bundleForClass:[_CPBorderlessBridgeWindowView class]]; + _CPToolbarViewBackgroundColor = CPColorWithImages([ + ["_CPToolbarView/toolbar-background-top.png", 1, 1, bundle], + ["_CPToolbarView/toolbar-background-center.png", 1, 57.0, bundle], + ["_CPToolbarView/toolbar-background-bottom.png", 1, 1, bundle], + ], CPColorPatternIsVertical); + } return _CPToolbarViewBackgroundColor; } diff --git a/AppKit/Resources/_CPToolbarView/_CPToolbarViewBackground.png b/AppKit/Resources/_CPToolbarView/_CPToolbarViewBackground.png deleted file mode 100644 index 25cfcc484..000000000 Binary files a/AppKit/Resources/_CPToolbarView/_CPToolbarViewBackground.png and /dev/null differ diff --git a/AppKit/Resources/_CPToolbarView/toolbar-background-bottom.png b/AppKit/Resources/_CPToolbarView/toolbar-background-bottom.png new file mode 100644 index 000000000..4dcfb044e Binary files /dev/null and b/AppKit/Resources/_CPToolbarView/toolbar-background-bottom.png differ diff --git a/AppKit/Resources/_CPToolbarView/toolbar-background-center.png b/AppKit/Resources/_CPToolbarView/toolbar-background-center.png new file mode 100644 index 000000000..18e0335f4 Binary files /dev/null and b/AppKit/Resources/_CPToolbarView/toolbar-background-center.png differ diff --git a/AppKit/Resources/_CPToolbarView/toolbar-background-top.png b/AppKit/Resources/_CPToolbarView/toolbar-background-top.png new file mode 100644 index 000000000..a6946f1b2 Binary files /dev/null and b/AppKit/Resources/_CPToolbarView/toolbar-background-top.png differ