mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
* Source/NSTableView.m: Switch to the alternate highlighting color
only when the background is white. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27252 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5518bc8938
commit
8e20be5f2d
2 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-12-07 22:50-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSTableView.m: Switch to the alternate highlighting color
|
||||
only when the background is white.
|
||||
|
||||
2008-12-07 22:30-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSTableView.m: Change highlighting color so that it shows
|
||||
|
|
|
@ -5102,10 +5102,20 @@ static BOOL selectContiguousRegion(NSTableView *self,
|
|||
row = [_selectedRows indexGreaterThanOrEqualToIndex: startingRow];
|
||||
while ((row != NSNotFound) && (row <= endingRow))
|
||||
{
|
||||
NSColor *selectionColor = [NSColor colorWithCalibratedRed: 0.86
|
||||
green: 0.92
|
||||
blue: 0.99
|
||||
alpha: 1.0];
|
||||
NSColor *selectionColor = nil;
|
||||
|
||||
// Switch to the alternate color of the backgroundColor is white.
|
||||
if([_backgroundColor isEqual: [NSColor whiteColor]])
|
||||
{
|
||||
selectionColor = [NSColor colorWithCalibratedRed: 0.86
|
||||
green: 0.92
|
||||
blue: 0.99
|
||||
alpha: 1.0];
|
||||
}
|
||||
else
|
||||
{
|
||||
selectionColor = [NSColor whiteColor];
|
||||
}
|
||||
|
||||
//NSHighlightRect(NSIntersectionRect([self rectOfRow: row],
|
||||
// clipRect));
|
||||
|
|
Loading…
Reference in a new issue