mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 07:10:37 +00:00
* Source/GSTheme.m (-drawButton:view:style:state:): Call
[drawButton:withClip:] instead of [drawGreyBezel:withClip:] if state is highlighted (e.g. scroller buttons). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24388 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8abc5f845a
commit
be6dee6f99
3 changed files with 8 additions and 6 deletions
|
@ -723,14 +723,10 @@ static NSNull *null = nil;
|
|||
[color set];
|
||||
NSRectFill(frame);
|
||||
|
||||
if (state == GSThemeNormalState)
|
||||
if (state == GSThemeNormalState || state == GSThemeHighlightedState)
|
||||
{
|
||||
[self drawButton: frame withClip: NSZeroRect];
|
||||
}
|
||||
else if (state == GSThemeHighlightedState)
|
||||
{
|
||||
[self drawGrayBezel: frame withClip: NSZeroRect];
|
||||
}
|
||||
else if (state == GSThemeSelectedState)
|
||||
{
|
||||
[self drawGrayBezel: frame withClip: NSZeroRect];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue