Some moves towards making scrollers more themable

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27518 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-01-05 09:43:25 +00:00
parent 99adecef26
commit 62492a9158
6 changed files with 179 additions and 60 deletions

View file

@ -1311,8 +1311,9 @@ typedef struct _GSButtonCellFlags
buttonState = GSThemeSelectedState;
}
borderSize = [[GSTheme theme] buttonBorderForStyle: _bezel_style
state: buttonState];
borderSize = [[GSTheme theme] buttonBorderForCell: self
style: _bezel_style
state: buttonState];
}
else
borderSize = NSZeroSize;
@ -1374,15 +1375,16 @@ typedef struct _GSButtonCellFlags
buttonState = GSThemeSelectedState;
}
borderSize = [[GSTheme theme] buttonBorderForStyle: _bezel_style
state: buttonState];
borderSize = [[GSTheme theme] buttonBorderForCell: self
style: _bezel_style
state: buttonState];
interiorFrame = NSInsetRect(theRect, borderSize.width, borderSize.height);
/* Pushed in buttons contents are displaced to the bottom right 1px. */
if (mask & NSPushInCellMask)
{
interiorFrame
= NSOffsetRect(interiorFrame, 1.0, [_control_view isFlipped] ? 1.0 : -1.0);
interiorFrame = NSOffsetRect(interiorFrame, 1.0,
[_control_view isFlipped] ? 1.0 : -1.0);
}
return interiorFrame;
}