Revision: 29981
          http://sourceforge.net/p/bibdesk/svn/29981
Author:   hofman
Date:     2026-01-27 22:49:19 +0000 (Tue, 27 Jan 2026)
Log Message:
-----------
Use high resolution or low resolution app icon image depending on graphics 
context

Modified Paths:
--------------
    trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m
    trunk/QuickLook-BibDesk/QuickLook-BibDesk.xcodeproj/project.pbxproj

Added Paths:
-----------
    trunk/QuickLook-BibDesk/BibDesk.png
    trunk/QuickLook-BibDesk/BibDesk_2x.png

Removed Paths:
-------------
    trunk/QuickLook-BibDesk/BibDesk.png

Deleted: trunk/QuickLook-BibDesk/BibDesk.png
===================================================================
(Binary files differ)

Added: trunk/QuickLook-BibDesk/BibDesk.png
===================================================================
(Binary files differ)

Index: trunk/QuickLook-BibDesk/BibDesk.png
===================================================================
--- trunk/QuickLook-BibDesk/BibDesk.png 2026-01-27 16:26:40 UTC (rev 29980)
+++ trunk/QuickLook-BibDesk/BibDesk.png 2026-01-27 22:49:19 UTC (rev 29981)

Property changes on: trunk/QuickLook-BibDesk/BibDesk.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Copied: trunk/QuickLook-BibDesk/BibDesk_2x.png (from rev 29980, 
trunk/QuickLook-BibDesk/BibDesk.png)
===================================================================
(Binary files differ)

Modified: trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m
===================================================================
--- trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m   2026-01-27 16:26:40 UTC 
(rev 29980)
+++ trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m   2026-01-27 22:49:19 UTC 
(rev 29981)
@@ -169,7 +169,8 @@
     NSRect pageRect = NSMakeRect(0, 0, size.width, size.height);
     NSRectFillUsingOperation(pageRect, NSCompositingOperationSourceOver);
     
-    NSURL *iconURL = (NSURL 
*)CFBridgingRelease(CFBundleCopyResourceURL(QLThumbnailRequestGetGeneratorBundle(thumbnail),
 CFSTR("BibDesk"), CFSTR("png"), NULL));
+    BOOL isHR = 
CGContextGetUserSpaceToDeviceSpaceTransform([[NSGraphicsContext currentContext] 
CGContext]).a > 1.0;
+    NSURL *iconURL = (NSURL 
*)CFBridgingRelease(CFBundleCopyResourceURL(QLThumbnailRequestGetGeneratorBundle(thumbnail),
 isHR ? CFSTR("BibDesk_2x") : CFSTR("BibDesk"), CFSTR("png"), NULL));
     NSImage *appIcon = [[NSImage alloc] initWithContentsOfURL:iconURL];
     
     NSRect iconRect = NSZeroRect;

Modified: trunk/QuickLook-BibDesk/QuickLook-BibDesk.xcodeproj/project.pbxproj
===================================================================
--- trunk/QuickLook-BibDesk/QuickLook-BibDesk.xcodeproj/project.pbxproj 
2026-01-27 16:26:40 UTC (rev 29980)
+++ trunk/QuickLook-BibDesk/QuickLook-BibDesk.xcodeproj/project.pbxproj 
2026-01-27 22:49:19 UTC (rev 29981)
@@ -13,7 +13,8 @@
                8D576314048677EA00EA77CD /* CoreFoundation.framework in 
Frameworks */ = {isa = PBXBuildFile; fileRef = 0AA1909FFE8422F4C02AAC07 /* 
CoreFoundation.framework */; };
                8D5B49A804867FD3000E48DA /* InfoPlist.strings in Resources */ = 
{isa = PBXBuildFile; fileRef = 8D5B49A704867FD3000E48DA /* InfoPlist.strings 
*/; };
                C86B05270671AA6E00DD9006 /* CoreServices.framework in 
Frameworks */ = {isa = PBXBuildFile; fileRef = C86B05260671AA6E00DD9006 /* 
CoreServices.framework */; };
-               CE1B1ABE2F282D21003B053C /* BibDesk.png in Resources */ = {isa 
= PBXBuildFile; fileRef = CE1B1ABD2F282D20003B053C /* BibDesk.png */; };
+               CE0D53DF2F29775100ED4023 /* BibDesk.png in Resources */ = {isa 
= PBXBuildFile; fileRef = CE0D53DE2F29775100ED4023 /* BibDesk.png */; };
+               CE1B1ABE2F282D21003B053C /* BibDesk_2x.png in Resources */ = 
{isa = PBXBuildFile; fileRef = CE1B1ABD2F282D20003B053C /* BibDesk_2x.png */; };
                F28CFBFD0A3EC0AF000ABFF5 /* ApplicationServices.framework in 
Frameworks */ = {isa = PBXBuildFile; fileRef = F28CFBFC0A3EC0AF000ABFF5 /* 
ApplicationServices.framework */; };
                F28CFC030A3EC0C6000ABFF5 /* QuickLook.framework in Frameworks 
*/ = {isa = PBXBuildFile; fileRef = F28CFC020A3EC0C6000ABFF5 /* 
QuickLook.framework */; };
                F95147490B5B4672002F5D6B /* Cocoa.framework in Frameworks */ = 
{isa = PBXBuildFile; fileRef = F95147480B5B4672002F5D6B /* Cocoa.framework */; 
};
@@ -32,7 +33,8 @@
                8D576316048677EA00EA77CD /* BibDesk.qlgenerator */ = {isa = 
PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path 
= BibDesk.qlgenerator; sourceTree = BUILT_PRODUCTS_DIR; };
                8D576317048677EA00EA77CD /* Info.plist */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = 
Info.plist; sourceTree = "<group>"; };
                C86B05260671AA6E00DD9006 /* CoreServices.framework */ = {isa = 
PBXFileReference; lastKnownFileType = wrapper.framework; name = 
CoreServices.framework; path = 
/System/Library/Frameworks/CoreServices.framework; sourceTree = "<absolute>"; };
-               CE1B1ABD2F282D20003B053C /* BibDesk.png */ = {isa = 
PBXFileReference; lastKnownFileType = image.png; path = BibDesk.png; sourceTree 
= "<group>"; };
+               CE0D53DE2F29775100ED4023 /* BibDesk.png */ = {isa = 
PBXFileReference; lastKnownFileType = image.png; path = BibDesk.png; sourceTree 
= "<group>"; };
+               CE1B1ABD2F282D20003B053C /* BibDesk_2x.png */ = {isa = 
PBXFileReference; lastKnownFileType = image.png; path = BibDesk_2x.png; 
sourceTree = "<group>"; };
                CE3D8EF2125E890300AE0232 /* de */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = de; path = 
de.lproj/InfoPlist.strings; sourceTree = "<group>"; };
                CECC7B98217F518900C88E8B /* QuickLook-BibDesk-Common.xcconfig 
*/ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = 
"QuickLook-BibDesk-Common.xcconfig"; sourceTree = "<group>"; };
                CECC7B99217F519800C88E8B /* QuickLook-BibDesk-Debug.xcconfig */ 
= {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = 
"QuickLook-BibDesk-Debug.xcconfig"; sourceTree = "<group>"; };
@@ -92,7 +94,8 @@
                089C167CFE841241C02AAC07 /* Resources */ = {
                        isa = PBXGroup;
                        children = (
-                               CE1B1ABD2F282D20003B053C /* BibDesk.png */,
+                               CE0D53DE2F29775100ED4023 /* BibDesk.png */,
+                               CE1B1ABD2F282D20003B053C /* BibDesk_2x.png */,
                                F953AE330B5C9BC30053F12B /* 
BibDeskQuickLook.html */,
                                8D576317048677EA00EA77CD /* Info.plist */,
                                8D5B49A704867FD3000E48DA /* InfoPlist.strings 
*/,
@@ -198,7 +201,8 @@
                        files = (
                                8D5B49A804867FD3000E48DA /* InfoPlist.strings 
in Resources */,
                                F953AE340B5C9BC30053F12B /* 
BibDeskQuickLook.html in Resources */,
-                               CE1B1ABE2F282D21003B053C /* BibDesk.png in 
Resources */,
+                               CE0D53DF2F29775100ED4023 /* BibDesk.png in 
Resources */,
+                               CE1B1ABE2F282D21003B053C /* BibDesk_2x.png in 
Resources */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to