Revision: 5755
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5755&view=rev
Author:   hofman
Date:     2009-09-16 17:12:37 +0000 (Wed, 16 Sep 2009)

Log Message:
-----------
don't show page breaks and use transparent background color for pdfview in 
presentation mode, so we don't get black edges in transitions

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2009-09-16 16:52:21 UTC (rev 5754)
+++ trunk/SKMainWindowController.m      2009-09-16 17:12:37 UTC (rev 5755)
@@ -1398,7 +1398,7 @@
     }
     [fullScreenWindow setBackgroundColor:backgroundColor];
     [fullScreenWindow setLevel:[self isPresentation] ? NSPopUpMenuWindowLevel 
: NSNormalWindowLevel];
-    [pdfView setBackgroundColor:backgroundColor];
+    [pdfView setBackgroundColor:[self isPresentation] ? [NSColor clearColor] : 
backgroundColor];
     [secondaryPdfView setBackgroundColor:backgroundColor];
     [pdfView layoutDocumentView];
     [pdfView setNeedsDisplay:YES];
@@ -1459,7 +1459,7 @@
     [pdfView setAutoScales:YES];
     [pdfView setDisplayMode:kPDFDisplaySinglePage];
     [pdfView setDisplayBox:kPDFDisplayBoxCropBox];
-    [pdfView setDisplaysPageBreaks:YES];
+    [pdfView setDisplaysPageBreaks:NO];
     [scrollView setAutohidesScrollers:YES];
     [scrollView setHasHorizontalScroller:NO];
     [scrollView setHasVerticalScroller:NO];
@@ -1468,10 +1468,8 @@
     if ([pdfView hasReadingBar])
         [pdfView toggleReadingBar];
     
-    NSColor *backgroundColor = [NSColor blackColor];
-    [pdfView setBackgroundColor:backgroundColor];
-    [secondaryPdfView setBackgroundColor:backgroundColor];
-    [fullScreenWindow setBackgroundColor:backgroundColor];
+    [pdfView setBackgroundColor:[NSColor clearColor]];
+    [fullScreenWindow setBackgroundColor:[NSColor blackColor]];
     [fullScreenWindow setLevel:NSPopUpMenuWindowLevel];
     
     SKPDFView *notesPdfView = [[self presentationNotesDocument] pdfView];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to