Changed appearance

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6307 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-03-18 00:26:41 +00:00
parent 9898abd3ce
commit 546ed77cd9

View file

@ -26,6 +26,7 @@
#include <AppKit/NSTableHeaderCell.h>
#include <AppKit/NSColor.h>
#include <AppKit/NSFont.h>
#include <AppKit/NSGraphics.h>
#include <AppKit/NSImage.h>
@ -45,12 +46,25 @@ static NSColor *clearCol = nil;
_cell.text_align = NSCenterTextAlignment;
ASSIGN (_text_color, [NSColor windowFrameTextColor]);
[self setBackgroundColor: [NSColor controlShadowColor]];
_cell.is_bordered = NO;
_cell.is_bezeled = NO;
[self setFont: [NSFont titleBarFontOfSize:12]];
_cell.is_bezeled = YES;
_textfieldcell_draws_background = YES;
return self;
}
- (void) drawWithFrame: (NSRect)cellFrame
inView: (NSView *)controlView
{
if (NSIsEmptyRect (cellFrame) || ![controlView window])
return;
[controlView lockFocus];
NSDrawButton (cellFrame, NSZeroRect);
[controlView unlockFocus];
[super drawInteriorWithFrame: cellFrame inView: controlView];
}
// Override drawInteriorWithFrame:inView: to be able
// to display images as NSCell does
- (void) drawInteriorWithFrame: (NSRect)cellFrame