Skip to content

Commit

Permalink
First pass at themes in Cappuccino.
Browse files Browse the repository at this point in the history
Reviewed by me.
  • Loading branch information
Francisco Ryan Tolmasky I committed Feb 1, 2009
1 parent 69cf9b3 commit 492f4b6
Show file tree
Hide file tree
Showing 45 changed files with 2,344 additions and 1,047 deletions.
2 changes: 2 additions & 0 deletions AppKit/AppKit.steam
Expand Up @@ -15,6 +15,7 @@
<string>CPTableColumn.j</string>
<string>CPTableView.j</string>
<!-- These get compiled into CGContext -->
<string>Themes</string>
<string>CoreGraphics/CGContextCanvas.j</string>
<string>CoreGraphics/CGContextVML.j</string>
</array>
Expand All @@ -29,6 +30,7 @@
<string>CPOutlineView.j</string>
<string>CPTableColumn.j</string>
<string>CPTableView.j</string>
<string>Themes</string>
<!-- These get compiled into CGContext -->
<string>CoreGraphics/CGContextCanvas.j</string>
<string>CoreGraphics/CGContextVML.j</string>
Expand Down
2 changes: 1 addition & 1 deletion AppKit/CPColor.j
Expand Up @@ -324,7 +324,7 @@ var _hueComponent = 0,
if (self)
{
_patternImage = anImage;
_cssString = "url(\"" + _patternImage._filename + "\")";
_cssString = "url(\"" + [_patternImage filename] + "\")";
}

return self;
Expand Down
2 changes: 1 addition & 1 deletion AppKit/CPControl.j
Expand Up @@ -393,7 +393,7 @@ var CPControlBlackColor = [CPColor blackColor];
if ((_sendActionOn & (1 << type)) && isWithinFrame)
[self sendAction:_action to:_target];

_trackingWasInFrame = isWithinFrame;
_trackingWasWithinFrame = isWithinFrame;
_previousTrackingLocation = currentLocation;
}

Expand Down
10 changes: 10 additions & 0 deletions AppKit/CPImage.j
Expand Up @@ -338,6 +338,11 @@ function CPImageInBundle(aFilename, aSize, aBundle)
return self;
}

- (CPString)filename
{
return @"";
}

- (CPArray)imageSlices
{
return _imageSlices;
Expand Down Expand Up @@ -402,6 +407,11 @@ var CPThreePartImageImageSlicesKey = @"CPThreePartImageImageSlicesKey",
return self;
}

- (CPString)filename
{
return @"";
}

- (CPArray)imageSlices
{
return _imageSlices;
Expand Down

0 comments on commit 492f4b6

Please sign in to comment.