Fixes to draw line borders correctly.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4766 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-08-26 04:13:43 +00:00
parent 5f61b6838b
commit 27c825f7c3
5 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,12 @@
Thu Aug 26 5:07:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Patch from Niico Pero <n.pero@mi.flashnet.it> modified to use
controlDarkShadowColor rather than blackColor.
* Source/NSBox.m: draw line borders in correct color.
* Source/NSCell.m ditto
* Source/NSScrollView.m: ditto
* Source/NSTabView.m: ditto
Sun Aug 22 11:52:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSView.m: ([-viewWillMoveToWindow:]) fixed to call method

View file

@ -276,6 +276,7 @@
case NSNoBorder:
break;
case NSLineBorder:
[[NSColor controlDarkShadowColor] set];
NSFrameRect(border_rect);
break;
case NSBezelBorder:

View file

@ -708,6 +708,7 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
// draw the border if needed
if ([self isBordered])
{
[[NSColor controlDarkShadowColor] set];
NSFrameRect(cellFrame);
}
else if ([self isBezeled])

View file

@ -32,6 +32,7 @@
#include <Foundation/NSException.h>
#include <AppKit/NSScroller.h>
#include <AppKit/NSColor.h>
#include <AppKit/NSClipView.h>
#include <AppKit/NSScrollView.h>
#include <AppKit/NSRulerView.h>
@ -543,6 +544,7 @@ static Class rulerViewClass = nil;
case NSLineBorder:
borderThickness = 1;
[[NSColor controlDarkShadowColor] set];
NSFrameRect(rect);
break;

View file

@ -289,6 +289,7 @@
borderThickness = 2;
break;
case NSNoTabsLineBorder:
[[NSColor controlDarkShadowColor] set];
NSFrameRect(rect);
borderThickness = 1;
break;