* Headers/Additions/GNUstepGUI/GSTheme.h:

* Source/GSThemeDrawing.m:
* Source/NSBrowser.m:
* Source/NSTableHeaderCell.m: Add custom color names
tableHeaderTextColor and browserHeaderTextColor for
table and browser headers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37193 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2013-10-04 02:23:16 +00:00
parent 467edcbeef
commit 53dcd018ad
5 changed files with 56 additions and 3 deletions

View file

@ -40,7 +40,7 @@
return nil;
[self setAlignment: NSCenterTextAlignment];
[self setTextColor: [NSColor windowFrameTextColor]];
[self setTextColor: [[GSTheme theme] tableHeaderTextColorForState: GSThemeNormalState]];
[self setBackgroundColor: [NSColor controlShadowColor]];
[self setDrawsBackground: YES];
[self setFont: [NSFont titleBarFontOfSize: 0]];
@ -113,12 +113,12 @@
if (flag == YES)
{
[self setBackgroundColor: [NSColor controlHighlightColor]];
[self setTextColor: [NSColor controlTextColor]];
[self setTextColor: [[GSTheme theme] tableHeaderTextColorForState: GSThemeHighlightedState]];
}
else
{
[self setBackgroundColor: [NSColor controlShadowColor]];
[self setTextColor: [NSColor windowFrameTextColor]];
[self setTextColor: [[GSTheme theme] tableHeaderTextColorForState: GSThemeNormalState]];
}
}