mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:27:38 +00:00
NSScroller: define scroller styles
As of macOS 10.7, scrollers gained two types: Legacy and Overlay. Here, we define these styles as well as a method to determine which is the "default" style to be used.
This commit is contained in:
parent
e85a1a0664
commit
fcb11edca8
2 changed files with 30 additions and 0 deletions
|
@ -49,6 +49,9 @@
|
|||
|
||||
#import "GNUstepGUI/GSTheme.h"
|
||||
|
||||
NSString *NSPreferredScrollerStyleDidChangeNotification =
|
||||
@"NSPreferredScrollerStyleDidChangeNotification";
|
||||
|
||||
/**<p>TODO Description</p>
|
||||
*/
|
||||
@implementation NSScroller
|
||||
|
@ -130,6 +133,12 @@ static float buttonsOffset = 1.0; // buttonsWidth = sw - 2*buttonsOffset
|
|||
return scrollerWidth;
|
||||
}
|
||||
|
||||
+ (NSScrollerStyle)preferredScrollerStyle
|
||||
{
|
||||
// FIXME: a theme should define this?
|
||||
return NSScrollerStyleLegacy;
|
||||
}
|
||||
|
||||
- (BOOL) isFlipped
|
||||
{
|
||||
return YES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue