Revision: 5300
http://skim-app.svn.sourceforge.net/skim-app/?rev=5300&view=rev
Author: hofman
Date: 2009-04-03 11:08:19 +0000 (Fri, 03 Apr 2009)
Log Message:
-----------
source list colors are even more complicated, they depend both on the main and
key state of the window
Modified Paths:
--------------
trunk/SKThumbnailTableView.m
trunk/SKTocOutlineView.m
Modified: trunk/SKThumbnailTableView.m
===================================================================
--- trunk/SKThumbnailTableView.m 2009-04-03 11:04:56 UTC (rev 5299)
+++ trunk/SKThumbnailTableView.m 2009-04-03 11:08:19 UTC (rev 5300)
@@ -98,7 +98,7 @@
if ([self respondsToSelector:@selector(setSelectionHighlightStyle:)]) {
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)
+ else if ([[self window] isKeyWindow] && [[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];
Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m 2009-04-03 11:04:56 UTC (rev 5299)
+++ trunk/SKTocOutlineView.m 2009-04-03 11:08:19 UTC (rev 5300)
@@ -79,7 +79,7 @@
if ([self respondsToSelector:@selector(setSelectionHighlightStyle:)]) {
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)
+ else if ([[self window] isKeyWindow] && [[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];
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