mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:00:37 +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
|
@ -1,3 +1,10 @@
|
||||||
|
2013-10-13 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
|
* Headers/Additions/GNUstepGUI/GSTheme.h:
|
||||||
|
* Source/GSTheme.m: Add GSProgressIndicatorBezel part name
|
||||||
|
* Source/GSThemeDrawing.m (-drawProgressIndicatorBezel:withClip:):
|
||||||
|
Use GSProgressIndicatorBezel to draw bezel if available.
|
||||||
|
|
||||||
2013-10-12 Eric Wasylishen <ewasylishen@gmail.com>
|
2013-10-12 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/GSThemeTools.m (-initWithNinePatchImage:): Parse the
|
* Source/GSThemeTools.m (-initWithNinePatchImage:): Parse the
|
||||||
|
|
|
@ -297,6 +297,7 @@ APPKIT_EXPORT NSString *GSPopUpButton;
|
||||||
/*
|
/*
|
||||||
* Progress Indicator part names.
|
* Progress Indicator part names.
|
||||||
*/
|
*/
|
||||||
|
APPKIT_EXPORT NSString *GSProgressIndicatorBezel;
|
||||||
APPKIT_EXPORT NSString *GSProgressIndicatorBarDeterminate;
|
APPKIT_EXPORT NSString *GSProgressIndicatorBarDeterminate;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -99,6 +99,7 @@ NSString *GSMenuSeparatorItem = @"GSMenuSeparatorItem";
|
||||||
NSString *GSPopUpButton = @"GSPopUpButton";
|
NSString *GSPopUpButton = @"GSPopUpButton";
|
||||||
|
|
||||||
// Progress indicator part names
|
// Progress indicator part names
|
||||||
|
NSString *GSProgressIndicatorBezel = @"GSProgressIndicatorBezel";
|
||||||
NSString *GSProgressIndicatorBarDeterminate
|
NSString *GSProgressIndicatorBarDeterminate
|
||||||
= @"GSProgressIndicatorBarDeterminate";
|
= @"GSProgressIndicatorBarDeterminate";
|
||||||
|
|
||||||
|
|
|
@ -1400,7 +1400,21 @@ static NSImage *spinningImages[MaxCount];
|
||||||
|
|
||||||
- (NSRect) drawProgressIndicatorBezel: (NSRect)bounds withClip: (NSRect) rect
|
- (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
|
- (void) drawProgressIndicatorBarDeterminate: (NSRect)bounds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue