-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update color scheme based on pull request #2
- update to libarchive 3.7.7
- Loading branch information
Showing
60 changed files
with
2,700 additions
and
1,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
qlZipInfo Licenses | ||
------------------ | ||
|
||
Portions Copyright (c) 2015-2022 Sriranga Veeraraghavan <[email protected]>. | ||
All rights reserved. | ||
Portions Copyright (c) 2015-2022, 2024 Sriranga Veeraraghavan | ||
<[email protected]>. All rights reserved. | ||
|
||
For those portions Copyright (c) Sriranga Veeraraghavan, the following license | ||
applies: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-----BEGIN PGP SIGNATURE----- | ||
|
||
iQGzBAABCgAdFiEE2yx88bTCZfrvVuP8WEihi48UGEsFAmcLg/sACgkQWEihi48U | ||
GEvcPAv/VFDcvOuRifDWwPS+ct3f9LwDdrpSfhrdcnig99R6Kom1bZgY9TCmIIv2 | ||
1qGwkLev7ZVQvAGtrzh1J87F4FzGZh50RhvbwurvBXtoiMspYKiHMuu9kbRPUJ8o | ||
vqa1rsQADKXe8uFyhd37LhxDLDEzl+gYfpI2XP2tMZAaRkdte0zc42MzFVJ5bKCg | ||
V/Q2tbyAiOnK8GZAQBjACb5UAB/KBCXPH+eyZKZ8Qbcp3cqRZfCbb49/q0lipv4N | ||
dmzekZmlPD8HGyaIFJmnb4Xq25ZX/AyLo5+TAOPIQyxHv23Zv8kjlhDvnK9s/CI8 | ||
tb89wacyrBVZRdkME2TM64kax+g93508R1H3pp/j2pQHq4TId95tCdDwW3yrNlWk | ||
wwgHEwikC8ER1a11mpkqJFa1QeXTikqsumuXujP5GHiup+FICbctWWgeeyvd5Yh/ | ||
sT3ZLRUV1CWmTPQEDYIOPM1Dqd6fYxLB+6veQEnDwIWdjHJUABZ5U9kqoronLd7N | ||
LgMqIziV | ||
=OYQf | ||
-----END PGP SIGNATURE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ | |
v. 0.1.0 (07/22/2021) - initial release | ||
v. 0.2.0 (11/13/2021) - add binhex support | ||
v. 0.3.0 (08/01/2022) - add stuffit support | ||
Copyright (c) 2015-2022 Sriranga R. Veeraraghavan <[email protected]> | ||
v. 0.4.0 (10/13/2024) - update color scheme based on PR#2 | ||
Copyright (c) 2015-2022, 2024 Sriranga R. Veeraraghavan <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
|
@@ -50,54 +51,55 @@ enum | |
|
||
enum | ||
{ | ||
gBorder = 1, | ||
gFontSize = 2, | ||
gIconHeight = 16, | ||
gIconWidth = 16, | ||
gColPadding = 8, | ||
gColFileSize = 72, | ||
gColFileCompress = 46, | ||
gColFileModDate = 58, | ||
gColFileModTime = 56, | ||
gColFileType = 24, | ||
gColFileName = 288, | ||
gColFileMacType = 58, | ||
gColFileMacCreator = 58, | ||
gBorder = 1, | ||
//gFontSize = 2, | ||
gIconHeight = 16, | ||
gIconWidth = 16, | ||
gColPadding = 8, | ||
gColFileSize = 72, | ||
gColFileCompress = 46, | ||
gColFileModDate = 58, | ||
gColFileModTime = 56, | ||
gColFileType = 24, | ||
gColFileName = 288, | ||
gColFileMacType = 58, | ||
gColFileMacCreator = 58, | ||
gColFileMacFileName = 356, | ||
}; | ||
|
||
/* table headings */ | ||
|
||
static const NSString *gTableHeaderName = @"Name"; | ||
static const NSString *gTableHeaderSize = @"Size"; | ||
static const NSString *gTableHeaderMode = @"Perms."; | ||
static const NSString *gTableHeaderDate = @"Modified"; | ||
static const NSString *gTableHeaderType = @"Type"; | ||
static const NSString *gTableHeaderCreator = @"Creator"; | ||
|
||
/* darkmode styles */ | ||
|
||
static const NSString *gDarkModeBackground = @"#232323"; | ||
static const NSString *gDarkModeForeground = @"lightgrey"; | ||
static const NSString *gDarkModeBackground = @"#231D2D"; | ||
static const NSString *gDarkModeForeground = @"#DDDDDD"; | ||
static const NSString *gDarkModeTableRowEvenBackgroundColor | ||
= @"#313131"; | ||
= @"#2F2A39"; | ||
static const NSString *gDarkModeTableRowEvenForegroundColor | ||
= @"white"; | ||
= @"DEDEDE"; | ||
static const NSString *gDarkModeTableBorderColor | ||
= @"#232323"; | ||
= @"#231D2D"; | ||
static const NSString *gDarkModeTableHeaderBorderColor | ||
= @"#555555"; | ||
= @"#403B47"; | ||
/* light mode styles */ | ||
|
||
static const NSString *gLightModeBackground = @"white"; | ||
static const NSString *gLightModeForeground = @"black"; | ||
static const NSString *gLightModeForeground = @"6e6b6d"; | ||
static const NSString *gLightModeTableRowEvenBackgroundColor | ||
= @"#F5F5F5"; | ||
= @"#F4F5F5"; | ||
static const NSString *gLightModeTableRowEvenForegroundColor | ||
= @"black"; | ||
= @"6e6b6d"; | ||
static const NSString *gLightModeTableBorderColor | ||
= @"white"; | ||
static const NSString *gLightModeTableHeaderBorderColor | ||
= @"#E7E7E7"; | ||
= @"#DDDDDD"; | ||
|
||
/* icons */ | ||
|
||
|
@@ -116,9 +118,14 @@ static const char *gFileNameUnavilable = "[Unavailable]"; | |
static const NSString *gFileNameUnavilableStr = | ||
@"[Unavailable]"; | ||
|
||
/* default font style - sans serif */ | ||
/* | ||
font style | ||
see: https://stackoverflow.com/questions/32660748 | ||
*/ | ||
|
||
static const NSString *gFontFace = @"sans-serif"; | ||
static const NSString *gFontFace = | ||
@"-apple-system, system-ui, 'Helvetica Neue', 'Lucida Grande', sans-serif"; | ||
static const NSString *gFontSize = @"small"; | ||
|
||
/* filesize abbreviations */ | ||
|
||
|
@@ -129,15 +136,15 @@ static const char *gFileSizeGigaBytes = "G"; | |
static const char *gFileSizeTeraBytes = "T"; | ||
|
||
static const char *gMacFileTypeApplication = "APPL"; | ||
static const char *gMacFileTypeSIT = "SITD"; | ||
static const char *gMacFileTypeSIT5 = "SIT5"; | ||
static const char *gMacFileTypeSIT = "SITD"; | ||
static const char *gMacFileTypeSIT5 = "SIT5"; | ||
|
||
/* UTIs for files that may require special handling */ | ||
|
||
static const CFStringRef gUTIGZip = CFSTR("org.gnu.gnu-zip-archive"); | ||
static const CFStringRef gUTIGZip = CFSTR("org.gnu.gnu-zip-archive"); | ||
static const CFStringRef gUTIBinHex = CFSTR("com.apple.binhex-archive"); | ||
static const CFStringRef gUTISIT1 = CFSTR("com.stuffit.archive.sit"); | ||
static const CFStringRef gUTISIT2 = CFSTR("com.allume.stuffit-archive"); | ||
static const CFStringRef gUTISIT1 = CFSTR("com.stuffit.archive.sit"); | ||
static const CFStringRef gUTISIT2 = CFSTR("com.allume.stuffit-archive"); | ||
|
||
/* structs */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,9 @@ | |
v. 0.2.5 (10/26/2021) - add support for uu encoded archives and rpms | ||
v. 0.3.0 (11/13/2021) - add support for binhex archives | ||
v. 0.4.0 (08/01/2022) - add support for stuffit archives | ||
v. 0.5.0 (10/13/2024) - update color scheme based on PR#2 | ||
Copyright (c) 2015-2022 Sriranga R. Veeraraghavan <[email protected]> | ||
Copyright (c) 2015-2022, 2024 Sriranga R. Veeraraghavan <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
|
@@ -1440,6 +1441,17 @@ static bool formatOutputHeader(NSMutableString *qlHtml) | |
|
||
[qlHtml appendString: @"<style>\n"]; | ||
|
||
/* | ||
set the font for all items | ||
see: https://stackoverflow.com/a/42928750 | ||
*/ | ||
|
||
[qlHtml appendFormat: | ||
@"*{ font-family: %@; font-size: %@; }", | ||
gFontFace, | ||
gFontSize]; | ||
|
||
/* darkmode styles */ | ||
|
||
[qlHtml appendString: @"@media (prefers-color-scheme: dark) { "]; | ||
|
@@ -1588,7 +1600,6 @@ static bool startOutputBody(NSMutableString *qlHtml) | |
} | ||
|
||
[qlHtml appendFormat: @"<body>\n"]; | ||
[qlHtml appendFormat: @"<font face=\"%@\">\n", gFontFace]; | ||
|
||
return true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.