Revision: 14643
http://sourceforge.net/p/skim-app/code/14643
Author: hofman
Date: 2024-11-05 15:48:22 +0000 (Tue, 05 Nov 2024)
Log Message:
-----------
draw note icons using Note annotation, so it also works on 10.13-10.14
Modified Paths:
--------------
trunk/SKNoteWindowController.m
Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m 2024-11-05 15:27:46 UTC (rev 14642)
+++ trunk/SKNoteWindowController.m 2024-11-05 15:48:22 UTC (rev 14643)
@@ -95,7 +95,8 @@
if (noteIcons[0]) return;
NSRect bounds = {NSZeroPoint, SKNPDFAnnotationNoteSize};
- PDFAnnotation *annotation = [[PDFAnnotation alloc] initWithBounds:bounds
forType:PDFAnnotationSubtypeText
withProperties:@{PDFAnnotationKeyColor:[NSColor clearColor]}];
+ PDFAnnotation *annotation = [PDFAnnotation newSkimNoteWithBounds:bounds
forType:SKNNoteString];
+ [annotation setColor:[NSColor clearColor]];
PDFPage *page = [[PDFPage alloc] init];
[page setBounds:bounds forBox:kPDFDisplayBoxMediaBox];
[page addAnnotation:annotation];
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