mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 06:40:38 +00:00
* Documentation/GuiUser/DefaultsSummary.gsdoc:
* Headers/Additions/GNUstepGUI/GSTheme.h: * Source/GSThemeDrawing.m: * Source/NSScroller.m: Add defaults GSScrollerScrollsByPage and GSScrollerArrowsSameEnd to allow customizing scroller behaviour beyond the combinations provided by NSInterfaceStyle. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37200 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
481d535880
commit
e72fe86870
5 changed files with 108 additions and 16 deletions
|
@ -809,14 +809,10 @@ static float buttonsOffset = 1.0; // buttonsWidth = sw - 2*buttonsOffset
|
|||
fromView: nil]];
|
||||
if (doubleValue != _doubleValue)
|
||||
{
|
||||
NSInterfaceStyle interfaceStyle;
|
||||
const BOOL scrollsToPoint =
|
||||
![[GSTheme theme] scrollerScrollsByPageForScroller: self];
|
||||
|
||||
interfaceStyle
|
||||
= NSInterfaceStyleForKey(@"NSScrollerInterfaceStyle", self);
|
||||
|
||||
if (interfaceStyle == NSNextStepInterfaceStyle
|
||||
|| interfaceStyle == NSMacintoshInterfaceStyle
|
||||
|| interfaceStyle == GSWindowMakerInterfaceStyle)
|
||||
if (scrollsToPoint)
|
||||
{
|
||||
/* NeXTstep style is to scroll to point.
|
||||
*/
|
||||
|
@ -1166,15 +1162,7 @@ static float buttonsOffset = 1.0; // buttonsWidth = sw - 2*buttonsOffset
|
|||
CGFloat buttonsWidth;
|
||||
CGFloat buttonsSize;
|
||||
NSUsableScrollerParts usableParts;
|
||||
NSInterfaceStyle interfaceStyle;
|
||||
BOOL arrowsSameEnd = NO;
|
||||
|
||||
interfaceStyle = NSInterfaceStyleForKey(@"NSScrollerInterfaceStyle", self);
|
||||
|
||||
if ((interfaceStyle == NSNextStepInterfaceStyle
|
||||
|| interfaceStyle == NSMacintoshInterfaceStyle
|
||||
|| interfaceStyle == GSWindowMakerInterfaceStyle))
|
||||
arrowsSameEnd = YES;
|
||||
BOOL arrowsSameEnd = [[GSTheme theme] scrollerArrowsSameEndForScroller: self];
|
||||
|
||||
if (upCell == nil)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue