Multiple commits from Michael, see ChangeLog.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16458 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Michael Silva 2003-04-13 23:45:39 +00:00
parent 4d791cb220
commit e9ccc289d5
7 changed files with 260 additions and 176 deletions

View file

@ -258,8 +258,31 @@ NSImage *images[maxCount];
r = NSIntersectionRect(r,rect);
if (!NSIsEmptyRect(r))
{
[fillColour set];
NSRectFill(r);
if (NSInterfaceStyleForKey(@"NSProgressIndicatorInterfaceStyle", nil)
== GSGtkInterfaceStyle)
{
NSRectEdge sides[] = {NSMaxXEdge, NSMinYEdge,
NSMinXEdge, NSMaxYEdge,
NSMaxXEdge, NSMinYEdge};
float grays[] = {NSBlack, NSBlack,
NSLightGray, NSLightGray,
NSDarkGray, NSDarkGray};
NSRect rect;
rect = NSDrawTiledRects(r, r,
sides, grays, 6);
/* This should perhaps be something else to ease in
* color themeing.
*/
[[NSColor scrollBarColor] set];
NSRectFill(rect);
}
else /* default case */
{
[fillColour set];
NSRectFill(r);
}
}
}
}