Some theme integration work

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23585 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-09-22 11:23:03 +00:00
parent 4da1923d39
commit f5a8f2e9aa
14 changed files with 1550 additions and 432 deletions

View file

@ -365,6 +365,7 @@
- (void) drawRect: (NSRect)rect
{
NSGraphicsContext *ctxt = GSCurrentContext();
GSDrawFunctions *theme = [GSDrawFunctions theme];
int howMany = [_items count];
int i;
NSRect previousRect = NSMakeRect(0, 0, 0, 0);
@ -378,18 +379,18 @@
default:
case NSTopTabsBezelBorder:
aRect.size.height -= 16;
[GSDrawFunctions drawButton: aRect : NSZeroRect];
[theme drawButton: aRect withClip: NSZeroRect];
break;
case NSBottomTabsBezelBorder:
aRect.size.height -= 16;
aRect.origin.y += 16;
[GSDrawFunctions drawButton: aRect : rect];
[theme drawButton: aRect withClip: rect];
aRect.origin.y -= 16;
break;
case NSNoTabsBezelBorder:
[GSDrawFunctions drawButton: aRect : rect];
[theme drawButton: aRect withClip: rect];
break;
case NSNoTabsLineBorder: