mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 22:37:21 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h: Added new method declaration
for drawButtonCell:... * Source/GSThemeDrawing.m: Added implementation for new method. The purpose of the method is to allow the theme to override images with native images which may be theme dependent. * Source/NSButtonCell.m: Use the new method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28522 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8949deeb03
commit
bc95107253
4 changed files with 41 additions and 10 deletions
|
@ -915,16 +915,10 @@ typedef struct _GSButtonCellFlags
|
|||
{
|
||||
position.y += size.height;
|
||||
}
|
||||
|
||||
if (_cell.is_disabled && _image_dims_when_disabled)
|
||||
{
|
||||
[anImage dissolveToPoint: position fraction: 0.5];
|
||||
}
|
||||
else
|
||||
{
|
||||
[anImage compositeToPoint: position
|
||||
operation: NSCompositeSourceOver];
|
||||
}
|
||||
|
||||
[[GSTheme theme] drawButtonCellImage: self
|
||||
withFrame: aRect
|
||||
position: position];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue