NSMiniWindowView fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18417 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2004-01-15 10:04:04 +00:00
parent 6af9a2d952
commit 73f6eaa73b

View file

@ -264,7 +264,7 @@ static NSCell *tileCell = nil;
+ (void) initialize
{
NSImage *tileImage = [NSImage imageNamed: @"common_Tile"];
NSImage *tileImage = [NSImage imageNamed: @"common_MiniWindowTile"];
tileCell = [[NSCell alloc] initImageCell: tileImage];
[tileCell setBordered: NO];
@ -285,7 +285,7 @@ static NSCell *tileCell = nil;
- (void) drawRect: (NSRect)rect
{
[tileCell drawWithFrame: NSMakeRect(0,0,64,64) inView: self];
[imageCell drawWithFrame: NSMakeRect(8,8,48,48) inView: self];
[imageCell drawWithFrame: NSMakeRect(8,4,48,48) inView: self];
[titleCell drawWithFrame: NSMakeRect(1,52,62,11) inView: self];
}
@ -371,8 +371,7 @@ static NSCell *tileCell = nil;
[titleCell setEditable: NO];
[titleCell setBordered: NO];
[titleCell setAlignment: NSCenterTextAlignment];
[titleCell setDrawsBackground: YES];
[titleCell setBackgroundColor: [NSColor blackColor]];
[titleCell setDrawsBackground: NO];
[titleCell setTextColor: [NSColor whiteColor]];
[titleCell setFont: [NSFont systemFontOfSize: 8]];
}