mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:07:39 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSTheme.m: Add GSProgressIndicatorBezel part name * Source/GSThemeDrawing.m (-drawProgressIndicatorBezel:withClip:): Use GSProgressIndicatorBezel to draw bezel if available. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37222 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bd3426dd41
commit
5501a5a4b7
4 changed files with 24 additions and 1 deletions
|
@ -99,6 +99,7 @@ NSString *GSMenuSeparatorItem = @"GSMenuSeparatorItem";
|
|||
NSString *GSPopUpButton = @"GSPopUpButton";
|
||||
|
||||
// Progress indicator part names
|
||||
NSString *GSProgressIndicatorBezel = @"GSProgressIndicatorBezel";
|
||||
NSString *GSProgressIndicatorBarDeterminate
|
||||
= @"GSProgressIndicatorBarDeterminate";
|
||||
|
||||
|
|
|
@ -1400,7 +1400,21 @@ static NSImage *spinningImages[MaxCount];
|
|||
|
||||
- (NSRect) drawProgressIndicatorBezel: (NSRect)bounds withClip: (NSRect) rect
|
||||
{
|
||||
return [self drawGrayBezel: bounds withClip: rect];
|
||||
GSDrawTiles *tiles = [self tilesNamed: GSProgressIndicatorBezel
|
||||
state: GSThemeNormalState];
|
||||
|
||||
if (tiles == nil)
|
||||
{
|
||||
return [self drawGrayBezel: bounds withClip: rect];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self fillRect: bounds
|
||||
withTiles: tiles
|
||||
background: [NSColor clearColor]];
|
||||
|
||||
return [tiles contentRectForRect: bounds];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) drawProgressIndicatorBarDeterminate: (NSRect)bounds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue