mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-23 21:32:39 +00:00
whatever.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e9ccc289d5
commit
42689ac827
4 changed files with 10 additions and 29 deletions
|
@ -258,31 +258,8 @@ NSImage *images[maxCount];
|
|||
r = NSIntersectionRect(r,rect);
|
||||
if (!NSIsEmptyRect(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);
|
||||
}
|
||||
[fillColour set];
|
||||
NSRectFill(r);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue