Revision: 5299
http://skim-app.svn.sourceforge.net/skim-app/?rev=5299&view=rev
Author: hofman
Date: 2009-04-03 11:04:56 +0000 (Fri, 03 Apr 2009)
Log Message:
-----------
source list colors depends on the main state of the window, not the key state
Modified Paths:
--------------
trunk/SKThumbnailTableView.m
trunk/SKTocOutlineView.m
Modified: trunk/SKThumbnailTableView.m
===================================================================
--- trunk/SKThumbnailTableView.m 2009-04-02 15:29:55 UTC (rev 5298)
+++ trunk/SKThumbnailTableView.m 2009-04-03 11:04:56 UTC (rev 5299)
@@ -96,14 +96,14 @@
NSRect rect;
if ([self respondsToSelector:@selector(setSelectionHighlightStyle:)]) {
- if ([[self window] isKeyWindow] == NO)
+ if ([[self window] isMainWindow] == NO)
color = [NSColor colorWithDeviceRed:40606.0/65535.0
green:40606.0/65535.0 blue:40606.0/65535.0 alpha:1.0];
else if ([[self window] firstResponder] == self)
color = [NSColor colorWithDeviceRed:14135.0/65535.0
green:29298.0/65535.0 blue:48830.0/65535.0 alpha:1.0];
else
color = [NSColor colorWithDeviceRed:34695.0/65535.0
green:39064.0/65535.0 blue:48316.0/65535.0 alpha:1.0];
} else {
- if ([[self window] isKeyWindow] && [[self window] firstResponder] ==
self)
+ if ([[self window] isMainWindow] && [[self window] firstResponder] ==
self)
color = [NSColor alternateSelectedControlColor];
else
color = [NSColor secondarySelectedTableColor];
Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m 2009-04-02 15:29:55 UTC (rev 5298)
+++ trunk/SKTocOutlineView.m 2009-04-03 11:04:56 UTC (rev 5299)
@@ -77,7 +77,7 @@
NSRect rect;
if ([self respondsToSelector:@selector(setSelectionHighlightStyle:)]) {
- if ([[self window] isKeyWindow] == NO)
+ if ([[self window] isMainWindow] == NO)
color = [NSColor colorWithDeviceRed:40606.0/65535.0
green:40606.0/65535.0 blue:40606.0/65535.0 alpha:1.0];
else if ([[self window] firstResponder] == self)
color = [NSColor colorWithDeviceRed:14135.0/65535.0
green:29298.0/65535.0 blue:48830.0/65535.0 alpha:1.0];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit