mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:20:37 +00:00
* Source/GSThemeDrawing.m: Add GSScrollerDefaultWidth user default
so non-code themes can change -[GSTheme defaultScrollerWidth] git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37163 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
894b5b0059
commit
d3a8560cc5
2 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-09-28 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/GSThemeDrawing.m: Add GSScrollerDefaultWidth user default
|
||||
so non-code themes can change -[GSTheme defaultScrollerWidth]
|
||||
|
||||
2013-09-28 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSScroller.m: Add GSScrollerKnobOvershoot default which
|
||||
|
|
|
@ -531,7 +531,18 @@
|
|||
|
||||
- (float) defaultScrollerWidth
|
||||
{
|
||||
return 18.0;
|
||||
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
|
||||
float defaultScrollerWidth;
|
||||
|
||||
if ([defs objectForKey: @"GSScrollerDefaultWidth"] != nil)
|
||||
{
|
||||
defaultScrollerWidth = [defs floatForKey: @"GSScrollerDefaultWidth"];
|
||||
}
|
||||
else
|
||||
{
|
||||
defaultScrollerWidth = 18.0;
|
||||
}
|
||||
return defaultScrollerWidth;
|
||||
}
|
||||
|
||||
- (NSColor *) toolbarBackgroundColor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue