mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:30:39 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSTheme.m: Declare GSSliderHorizontalTrack and GSSliderVerticalTrack part names for themeing the background of NSSlider * Source/GSThemeDrawing.m: Add new drawSliderBorderAndBackground:frame:inCell:isHorizontal: method to draw the slider border and background. * Source/GSThemePrivate.h: * Source/GSThemeTools.m: Add a -size method on GSDrawTiles which returns the total original size of the tiles, so we can easily compute a rect that scales the tiles in only one dimension. * Source/NSSliderCell.m: Override _drawBorderAndBackgroundWithFrame: to call new GSTheme method. Also, tweak the knob drawing code; the knob is now centered and drawn at its native size. This still looks correct with the default slider sizes create by Gorm. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37185 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d3be1c555f
commit
2347347cf9
7 changed files with 147 additions and 17 deletions
|
@ -301,6 +301,10 @@ APPKIT_EXPORT NSString *GSProgressIndicatorBarDeterminate;
|
|||
*/
|
||||
APPKIT_EXPORT NSString *GSColorWell;
|
||||
|
||||
/* NSSliderCell parts */
|
||||
APPKIT_EXPORT NSString *GSSliderHorizontalTrack;
|
||||
APPKIT_EXPORT NSString *GSSliderVerticalTrack;
|
||||
|
||||
/**
|
||||
* Structure to describe the size of top/bottom/left/right margins inside
|
||||
* a button
|
||||
|
@ -1132,6 +1136,11 @@ APPKIT_EXPORT NSString *GSThemeWillDeactivateNotification;
|
|||
- (void) drawScrollViewRect: (NSRect)rect
|
||||
inView: (NSView *)view;
|
||||
|
||||
- (void) drawSliderBorderAndBackground: (NSBorderType)aType
|
||||
frame: (NSRect)cellFrame
|
||||
inCell: (NSCell *)cell
|
||||
isHorizontal: (BOOL)horizontal;
|
||||
|
||||
- (void) drawBarInside: (NSRect)rect
|
||||
inCell: (NSCell *)cell
|
||||
flipped: (BOOL)flipped;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue