Skip to content

Commit 42727b4

Browse files
committed
Add placeholder texts
1 parent 5798d90 commit 42727b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

QuickLook/GeneratePreviewForURL.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options)
1717
{
18-
NSString *_content = @"<html style=\"background-color:rgba(0, 0, 0, 0);\"><body style=\"background-color:rgba(0, 0, 0, 0);\"><ul><li>One</li><li>Twee</li><li>Three</li></ul><p>Hello web view!<p></body></html>";
18+
NSString *_content = @"<html style=\"background-color:rgba(0, 0, 0, 0);\"><body style=\"background-color:rgba(0, 0, 0, 0);\"><h1>Quicklook support coming soon</h1></body></html>";
1919

2020
NSDictionary *properties = @{ // properties for the HTML data
2121
(__bridge NSString *)kQLPreviewPropertyTextEncodingNameKey : @"UTF-8",
@@ -31,3 +31,4 @@ void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview)
3131
{
3232
// Implement only if supported
3333
}
34+

QuickLook/GenerateThumbnailForURL.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)
1717
{
18-
NSString *_content = @"Hello eidReader thumb user!";
18+
NSString *_content = @"Quicklook thumbnail coming soon";
1919

2020
QLThumbnailRequestSetThumbnailWithDataRepresentation(thumbnail, (__bridge CFDataRef)[_content dataUsingEncoding:NSUTF8StringEncoding], kUTTypePlainText, NULL, NULL);
2121

0 commit comments

Comments
 (0)