mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:07:38 +00:00
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:
parent
99adecef26
commit
62492a9158
6 changed files with 179 additions and 60 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue