Preliminary support for themeing the window resize bar with tiles.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29456 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2010-02-01 08:41:04 +00:00
parent 1e62a48e11
commit e42a857b66
2 changed files with 47 additions and 30 deletions

View file

@ -1,3 +1,8 @@
2010-02-01 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSThemeDrawing.m: Preliminary support for themeing the window
resize bar with tiles.
2010-02-01 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSTheme.m:

View file

@ -1211,7 +1211,12 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
}
}
// FIXME: Would be good if this took the window as a param
- (void) drawResizeBarRect: (NSRect)resizeBarRect
{
GSDrawTiles *tiles;
tiles = [self tilesNamed: @"GSWindowResizeBar" state: GSThemeNormalState];
if (tiles == nil)
{
[[NSColor lightGrayColor] set];
PSrectfill(1.0, 1.0, resizeBarRect.size.width - 2.0, RESIZE_HEIGHT - 3.0);
@ -1252,6 +1257,13 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
PSlineto(resizeBarRect.size.width - 27.5, RESIZE_HEIGHT - 2.0);
PSstroke();
}
else
{
[self fillRect: resizeBarRect
withTiles: tiles
background: [NSColor clearColor]];
}
}
- (void) drawWindowBorder: (NSRect)rect
withFrame: (NSRect)frame