diff --git a/macosx/QuickLookPlugin/GeneratePreviewForURL.mm b/macosx/QuickLookPlugin/GeneratePreviewForURL.mm
index 0c7b55c13..7f98d37ef 100644
--- a/macosx/QuickLookPlugin/GeneratePreviewForURL.mm
+++ b/macosx/QuickLookPlugin/GeneratePreviewForURL.mm
@@ -149,7 +149,7 @@ OSStatus GeneratePreviewForURL(void* thisInterface, QLPreviewRequestRef preview,
for (size_t i = 0; i < n_webseeds; ++i)
{
- [listSection appendFormat:@"
| %s | |
", metainfo.webseed(i).c_str()];
+ [listSection appendFormat:@"| %s |
", metainfo.webseed(i).c_str()];
}
[listSection appendString:@""];
@@ -169,10 +169,10 @@ OSStatus GeneratePreviewForURL(void* thisInterface, QLPreviewRequestRef preview,
[NSString localizedStringWithFormat:NSLocalizedStringFromTableInBundle(@"%lu Trackers", nil, bundle, "quicklook tracker header"), n];
[listSection appendFormat:@"| %@ |
", headerTitleString];
-#warning handle tiers?
+ // TODO: handle tiers?
for (auto const& tracker : announce_list)
{
- [listSection appendFormat:@"| %s | |
", tracker.announce.c_str()];
+ [listSection appendFormat:@"| %s |
", tracker.announce.c_str()];
}
[listSection appendString:@""];
@@ -196,15 +196,15 @@ OSStatus GeneratePreviewForURL(void* thisInterface, QLPreviewRequestRef preview,
NSCAssert([fullFilePath hasPrefix:[name stringByAppendingString:@"/"]], @"Expected file path %@ to begin with %@/", fullFilePath, name);
NSString* shortenedFilePath = [fullFilePath substringFromIndex:name.length + 1];
- NSString* shortenedFilePathAndSize = [NSString
- stringWithFormat:@"%@ - %@", shortenedFilePath, [NSString stringForFileSize:size]];
+ NSString* fileSize = [NSString stringForFileSize:size];
NSUInteger const width = 16;
- [listSection appendFormat:@" %@ | |
",
+ [listSection appendFormat:@" %@ | %@ |
",
generateIconData(shortenedFilePath.pathExtension, width, allImgProps),
width,
width,
- shortenedFilePathAndSize];
+ shortenedFilePath,
+ fileSize];
}
[listSection appendString:@""];
diff --git a/macosx/QuickLookPlugin/style.css b/macosx/QuickLookPlugin/style.css
index 5c19aaf30..476f13e2b 100644
--- a/macosx/QuickLookPlugin/style.css
+++ b/macosx/QuickLookPlugin/style.css
@@ -4,16 +4,36 @@ html {
text-align: left;
}
+table {
+ width: 100%;
+ border-spacing: 0;
+}
+
th {
color: rgb(50,50,50);
font-weight: bold;
text-align: left;
}
+tr:nth-child(even) {
+ background: rgb(244,245,245);
+}
+tr:nth-child(even) td:first-child {
+ border-top-left-radius: 5px;
+ border-bottom-left-radius: 5px;
+}
+tr:nth-child(even) td:last-child {
+ border-top-right-radius: 5px;
+ border-bottom-right-radius: 5px;
+}
+
td {
color: rgb(80,80,80);
text-align: left;
}
+td.grey {
+ color: rgb(133,133,133);
+}
img.icon {
margin-right: 8px;