Fixes for system colors

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4777 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-08-31 09:19:39 +00:00
parent 7ecbd8da9d
commit a3c6189002
14 changed files with 1013 additions and 886 deletions

View file

@ -56,8 +56,8 @@
return contents;
}
- (void)drawWithFrame:(NSRect)cellFrame
inView:(NSView*)view
- (void) drawWithFrame: (NSRect)cellFrame
inView: (NSView*)view
{
NSGraphicsContext *ctxt = GSCurrentContext();
NSRect rect = cellFrame;
@ -71,13 +71,15 @@
arect.origin.x += 1;
arect.origin.y += 2;
if (cell_highlighted) {
[[NSColor whiteColor] set];
NSRectFill(arect);
} else {
[[NSColor lightGrayColor] set];
NSRectFill(arect);
}
if (cell_highlighted)
{
[[NSColor selectedMenuItemColor] set];
}
else
{
[[NSColor controlColor] set];
}
NSRectFill(arect);
if (cell_image)
{
@ -96,7 +98,14 @@
point.x = rect.origin.x + xDist;
rect.origin = point;
[[NSColor blackColor] set];
if (cell_highlighted)
{
[[NSColor selectedMenuItemTextColor] set];
}
else
{
[[NSColor controlTextColor] set];
}
// Draw the title.