mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:40:37 +00:00
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:
parent
6af9a2d952
commit
73f6eaa73b
1 changed files with 3 additions and 4 deletions
|
@ -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]];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue