mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-21 09:50:41 +00:00
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
This commit is contained in:
@@ -22,27 +22,20 @@
|
||||
|
||||
@import "_CPWindowView.j"
|
||||
|
||||
|
||||
var _CPToolbarViewBackgroundColor = nil;
|
||||
|
||||
@implementation _CPBorderlessBridgeWindowView : _CPWindowView
|
||||
{
|
||||
CPView _toolbarBackgroundView;
|
||||
}
|
||||
|
||||
+ (CPColor)toolbarBackgroundColor
|
||||
+ (CPString)defaultThemeClass
|
||||
{
|
||||
if (!_CPToolbarViewBackgroundColor)
|
||||
{
|
||||
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 @"bordeless-bridge-window-view";
|
||||
}
|
||||
|
||||
return _CPToolbarViewBackgroundColor;
|
||||
+ (id)themeAttributes
|
||||
{
|
||||
return [CPDictionary dictionaryWithObjects:[[CPColor grayColor]]
|
||||
forKeys:[@"toolbar-background-color"]];
|
||||
}
|
||||
|
||||
- (void)setShowsResizeIndicator:(BOOL)shouldShowResizeIndicator
|
||||
@@ -72,7 +65,7 @@ var _CPToolbarViewBackgroundColor = nil;
|
||||
{
|
||||
_toolbarBackgroundView = [[CPView alloc] initWithFrame:CGRectMakeZero()];
|
||||
|
||||
[_toolbarBackgroundView setBackgroundColor:[[self class] toolbarBackgroundColor]];
|
||||
[_toolbarBackgroundView setBackgroundColor:[self valueForThemeAttribute:@"toolbar-background-color"]];
|
||||
[_toolbarBackgroundView setAutoresizingMask:CPViewWidthSizable];
|
||||
|
||||
[self addSubview:_toolbarBackgroundView positioned:CPWindowBelow relativeTo:nil];
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 991 B |
Binary file not shown.
|
After Width: | Height: | Size: 1011 B |
Binary file not shown.
|
After Width: | Height: | Size: 991 B |
@@ -1989,11 +1989,11 @@ var themedButtonValues = nil,
|
||||
]),
|
||||
|
||||
closeButtonImage = PatternImage(@"window-standard-close-button.png", 16, 16),
|
||||
closeButtonImageHighlighted = PatternImage(@"window-standard-button-highlighted.png",16,16),
|
||||
unsavedButtonImage = PatternImage(@"window-standard-button-unsaved.png",16,16),
|
||||
unsavedButtonImageHighlighted = PatternImage(@"window-standard-close-button-unsaved-highlighted.png",16,16),
|
||||
minimizeButtonImage = PatternImage(@"window-standard-minimize-button",16,16),
|
||||
minimizeButtonImageHighlighted = PatternImage(@"window-standard-minimize-button-highlighted",16,16),
|
||||
closeButtonImageHighlighted = PatternImage(@"window-standard-button-highlighted.png",16, 16),
|
||||
unsavedButtonImage = PatternImage(@"window-standard-button-unsaved.png",16, 16),
|
||||
unsavedButtonImageHighlighted = PatternImage(@"window-standard-close-button-unsaved-highlighted.png",16, 16),
|
||||
minimizeButtonImage = PatternImage(@"window-standard-minimize-button.png",16, 16),
|
||||
minimizeButtonImageHighlighted = PatternImage(@"window-standard-minimize-button-highlighted.png",16, 16),
|
||||
|
||||
sheetShadow = PatternColor(@"window-attached-sheet-shadow.png", 9, 8),
|
||||
resizeIndicator = PatternImage(@"window-resize-indicator.png", 12, 12),
|
||||
@@ -2068,11 +2068,32 @@ var themedButtonValues = nil,
|
||||
return docModalWindowView;
|
||||
}
|
||||
|
||||
+(_CPBorderlessBridgeWindowView)themedBordelessBridgeWindowView
|
||||
{
|
||||
var bordelessBridgeWindowView = [[_CPBorderlessBridgeWindowView alloc] initWithFrame:CGRectMake(0,0,0,0)],
|
||||
|
||||
toolbarBackgroundColor = PatternColor(
|
||||
[
|
||||
[@"toolbar-background-top.png", 1.0, 1.0],
|
||||
[@"toolbar-background-center.png", 1.0, 57.0],
|
||||
[@"toolbar-background-bottom.png", 1.0, 1.0]
|
||||
], PatternIsVertical)
|
||||
|
||||
themeValues =
|
||||
[
|
||||
[@"toolbar-background-color", toolbarBackgroundColor]
|
||||
];
|
||||
|
||||
[self registerThemeValues:themeValues forView:bordelessBridgeWindowView inherit:themedWindowViewValues];
|
||||
|
||||
return bordelessBridgeWindowView;
|
||||
}
|
||||
|
||||
+(_CPToolbarView)themedToolbarView
|
||||
{
|
||||
var toolbarView = [[_CPToolbarView alloc] initWithFrame:CGRectMakeZero()],
|
||||
|
||||
toolbarExtraItemsImage = PatternImage(@"toolbar-view-extra-items-image", 10, 15),
|
||||
toolbarExtraItemsImage = PatternImage(@"toolbar-view-extra-items-image.png", 10, 15),
|
||||
toolbarExtraItemsAlternateImage = PatternImage(@"toolbar-view-extra-items-alternate-image.png", 10, 15),
|
||||
|
||||
themeValues =
|
||||
|
||||
Reference in New Issue
Block a user