mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 17:32:03 +00:00
Fixed: theme showcase was failing due to various bugs.
This commit is contained in:
1 parent
6bac934d0c
commit
7385f04d7f
5 files changed
+13
-5
No files matched your search
@@ -683,7 +683,7 @@ _CPWindowViewResizeSlop = 3;
|
||||
[theWindow _setAttachedSheetFrameOrigin];
|
||||
[sheet._windowView _adjustShadowViewSize];
|
||||
}
|
||||
else if (theWindow._isSheet)
|
||||
else if (theWindow && theWindow._isSheet)
|
||||
[self _adjustShadowViewSize];
|
||||
}
|
||||
|
||||
|
||||
@@ -176,6 +176,11 @@ var _CPCibCustomResourceClassNameKey = @"_CPCibCustomResourceClassNameKey",
|
||||
return [_properties objectForKey:@"size"];
|
||||
}
|
||||
|
||||
- (BOOL)isSingleImage
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)isThreePartImage
|
||||
{
|
||||
return NO;
|
||||
|
||||
@@ -375,7 +375,7 @@ var themedButtonValues = nil,
|
||||
"themedMenuItemStandardView",
|
||||
"themedMenuItemMenuBarView",
|
||||
"themedToolbarView",
|
||||
"themedBordelessBridgeWindowView",
|
||||
"themedBorderlessBridgeWindowView",
|
||||
"themedWindowView",
|
||||
"themedBrowser",
|
||||
"themedRuleEditor",
|
||||
@@ -2751,7 +2751,7 @@ var themedButtonValues = nil,
|
||||
return docModalWindowView;
|
||||
}
|
||||
|
||||
+ (_CPBorderlessBridgeWindowView)themedBordelessBridgeWindowView
|
||||
+ (_CPBorderlessBridgeWindowView)themedBorderlessBridgeWindowView
|
||||
{
|
||||
var bordelessBridgeWindowView = [[_CPBorderlessBridgeWindowView alloc] initWithFrame:CGRectMake(0,0,0,0)],
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ var themedButtonValues = nil,
|
||||
"themedMenuItemStandardView",
|
||||
"themedMenuItemMenuBarView",
|
||||
"themedToolbarView",
|
||||
"themedBordelessBridgeWindowView",
|
||||
"themedBorderlessBridgeWindowView",
|
||||
"themedWindowView",
|
||||
"themedBrowser",
|
||||
"themedRuleEditor",
|
||||
@@ -2187,7 +2187,7 @@ var themedButtonValues = nil,
|
||||
return docModalWindowView;
|
||||
}
|
||||
|
||||
+ (_CPBorderlessBridgeWindowView)themedBordelessBridgeWindowView
|
||||
+ (_CPBorderlessBridgeWindowView)themedBorderlessBridgeWindowView
|
||||
{
|
||||
var bordelessBridgeWindowView = [[_CPBorderlessBridgeWindowView alloc] initWithFrame:CGRectMake(0,0,0,0)],
|
||||
|
||||
|
||||
@@ -421,6 +421,9 @@ var ShowcaseCellBackgroundColor = nil,
|
||||
|
||||
- (void)setRepresentedObject:(id)anObject
|
||||
{
|
||||
if (!anObject)
|
||||
return;
|
||||
|
||||
if (!_label)
|
||||
{
|
||||
_label = [[CPTextField alloc] initWithFrame:CGRectMakeZero()];
|
||||
|
||||
Reference in new issue
Block a user