mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Reduced the bloat
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5092 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4b79f086d7
commit
80623e752d
1 changed files with 9 additions and 8 deletions
|
@ -46,10 +46,12 @@ static NSImage *highlight_image;
|
|||
static Class cellClass;
|
||||
static Class colorClass;
|
||||
|
||||
// Color is not used now, but the code is here
|
||||
// in case in the future we want to use it again
|
||||
static BOOL gsFontifyCells = NO;
|
||||
static NSColor *nonLeafColor;
|
||||
//static NSColor *nonLeafColor;
|
||||
static NSFont *nonLeafFont;
|
||||
static NSColor *leafColor;
|
||||
//static NSColor *leafColor;
|
||||
static NSFont *leafFont;
|
||||
|
||||
/*
|
||||
|
@ -111,11 +113,10 @@ static NSFont *leafFont;
|
|||
{
|
||||
gsFontifyCells = YES;
|
||||
cellClass = [NSTextFieldCell class];
|
||||
// TODO: Make these easily configurable
|
||||
nonLeafColor = RETAIN ([colorClass colorWithCalibratedWhite: 0.222
|
||||
alpha: 1.0]);
|
||||
//nonLeafColor = RETAIN ([colorClass colorWithCalibratedWhite: 0.222
|
||||
// alpha: 1.0]);
|
||||
nonLeafFont = RETAIN ([NSFont boldSystemFontOfSize: 0]);
|
||||
leafColor = RETAIN ([colorClass blackColor]);
|
||||
//leafColor = RETAIN ([colorClass blackColor]);
|
||||
leafFont = RETAIN ([NSFont systemFontOfSize: 0]);
|
||||
}
|
||||
}
|
||||
|
@ -223,12 +224,12 @@ static NSFont *leafFont;
|
|||
if (_isLeaf)
|
||||
{
|
||||
[(NSTextFieldCell *)_browserText setFont: leafFont];
|
||||
[(NSTextFieldCell *)_browserText setTextColor: leafColor];
|
||||
//[(NSTextFieldCell *)_browserText setTextColor: leafColor];
|
||||
}
|
||||
else
|
||||
{
|
||||
[(NSTextFieldCell *)_browserText setFont: nonLeafFont];
|
||||
[(NSTextFieldCell *)_browserText setTextColor: nonLeafColor];
|
||||
//[(NSTextFieldCell *)_browserText setTextColor: nonLeafColor];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue