Compare commits

...

460 Commits
0.2.3 ... 3.6.7

Author SHA1 Message Date
Paddy Xu
208c5d5391 #627: a new app icon 🎉 2020-04-05 19:07:01 +03:00
Paddy Xu
8182d77dfa Update to QL-Win/WPF-MediaKit@bb8861e24d: force GC to ensure file unlocked 2020-04-04 16:25:26 +03:00
Paddy Xu
3991735d0d Update .appveyor.yml
Update GitHub API key
2020-03-25 15:54:59 +02:00
Paddy Xu
c0d8e79aad Fix #604: use an icon for "Open" to spare more space 2020-03-25 15:15:56 +02:00
Paddy Xu
8ed8f3459e Fix #603: allow faster deletion after previewing for videos (ref: QL-Win/WPF-MediaKit@cb15c44372) 2020-03-25 15:11:35 +02:00
Paddy Xu
a83425ff68 Fix #613: Ruby syntax highlighting 2020-03-13 22:28:10 +02:00
Paddy Xu
3646632011 Merge pull request #607 from diligamer/master
Fixed a readme typo
2020-02-06 19:54:57 +02:00
Keanu Reeves
be9c5e1024 Update README.md 2020-02-05 17:10:48 +03:00
Paddy Xu
2d8a38f922 Merge pull request #574 from rabelux/patch-1
Update README.md
2019-11-12 15:32:35 +02:00
Paddy Xu
ee7109d1da Merge pull request #572 from r15ch13/batch-hightlight-fix
Fix syntax highlighting for batch files
2019-11-12 15:31:26 +02:00
Richard Kuhnt
c382669135 Fix syntax highlighting for batch files 2019-11-10 18:58:53 +01:00
Paddy Xu
704a4b5715 Fix another Russian identifier 2019-11-05 23:40:02 +02:00
Paddy Xu
7f3d7d860c Fix #566: Russian language identifier is wrong 2019-11-05 23:38:04 +02:00
Paddy Xu
f9c66a6afe Update README.md 2019-10-09 20:59:47 +03:00
Paddy Xu
9ad07e4232 Merge branch 'master' of github.com:QL-Win/QuickLook 2019-10-09 20:57:36 +03:00
Paddy Xu
7e84f86ecb Update README.md 2019-10-09 20:56:50 +03:00
Paddy Xu
db2ecdc3d0 Modify Loop icon; add tooltips; and save option on window close 2019-10-09 20:56:50 +03:00
Jethro Alter
401976e280 Add option to loop videos
Ref: #496
2019-10-09 20:56:50 +03:00
Paddy Xu
6f0e7a6a2b Still use CTRL+Wheel for PdfViewer 2019-10-09 20:54:44 +03:00
Paddy Xu
55d8dc29ef Update README.md 2019-10-09 20:44:22 +03:00
Paddy Xu
7b2b6b22f8 Merge pull request #553 from Jethro-Alter/Image_Zoom
Mouse wheel for zoom; Double click to reset zoom
2019-10-09 20:43:46 +03:00
Paddy Xu
1f198f1e5f Line feed I guess? 2019-10-09 20:43:01 +03:00
Paddy Xu
42f109bf7e Merge pull request #552 from Jethro-Alter/Video_Loop
Add Video loop option
2019-10-09 20:38:11 +03:00
Paddy Xu
781947df9f Modify Loop icon; add tooltips; and save option on window close 2019-10-09 20:33:41 +03:00
Jethro Alter
8d8f46cd36 Add reset zoom on double click for images 2019-09-30 20:01:54 +02:00
Jethro Alter
7fcbe8343c Remove dependency on control key when zooming images
Ref: #422
2019-09-30 19:59:29 +02:00
Jethro Alter
aeafe01696 Add option to loop videos
Ref: #496
2019-09-29 17:19:25 +02:00
Jethro-Alter
dccfc81e33 Merge pull request #4 from QL-Win/master
Get latest from fork
2019-09-29 17:10:04 +02:00
Paddy Xu
cb0005118c Everything executes selected items from another (hidden) window (ref #521) 2019-09-25 21:25:54 +03:00
Paddy Xu
8549f24d0a Fix #521 again: the same for arrow keys 2019-09-23 20:26:27 +03:00
Paddy Xu
1d83cd8dd0 Fix #521: wrong path copying when Enter key is pressed and QL is *not* showing 2019-09-23 20:06:31 +03:00
Jethro-Alter
1b36b8607f Merge pull request #3 from QL-Win/master
Update from latest master
2019-09-23 11:14:14 +02:00
Jethro-Alter
7505c40342 Fix wrong window size when videos are not in 16:9 (#549) 2019-09-23 11:14:57 +03:00
Jethro-Alter
da02d6d6ee Display .url files as webpage (#550) 2019-09-23 11:02:19 +03:00
Jethro-Alter
c5000d9a66 Add support for .aif and .m4r audio files (#547)
* Add support for .aif files

Ref: #541

* Add support for .m4r files

Ref: #467
2019-09-15 23:17:11 +03:00
Jethro-Alter
26ca8df32a Merge pull request #2 from Jethro-Alter/m4r-support
Add support for .m4r files
2019-09-15 18:02:25 +02:00
Jethro Alter
923652b56a Add support for .m4r files
Ref: #467
2019-09-15 17:36:08 +02:00
Jethro-Alter
78e7cd54cd Merge pull request #1 from Jethro-Alter/AIF_Support
Add support for .aif files
2019-09-14 16:44:24 +02:00
Jethro Alter
e0d792e648 Add support for .aif files
Ref: #541
2019-09-14 14:21:39 +02:00
Paddy Xu
e447986cfc Update README.md 2019-09-11 23:02:31 +03:00
Alexander Raab
093e4917b5 Update README.md
Lazy people do only read the important part (download & install) and then wonder why I can preview more files than they can... So for the lazy people these two edits might come in handy. 
Oh and the dollar note - feel free to take it or just leave it the way it was :D
2019-08-21 20:48:52 +02:00
Paddy Xu
dbab12d084 Fix #519: highlight .pyw files 2019-07-11 20:18:15 +03:00
Paddy Xu
165c9ad12e Refresh NuGet packages 2019-06-24 18:28:24 +03:00
Paddy Xu
e303c52f9c Fix #442: Disable transparency for Intel HD 4xxx GPUs 2019-06-24 18:17:36 +03:00
Paddy Xu
6d7bd5aee1 Ignore malformed csv lines 2019-06-03 23:02:17 +03:00
Paddy Xu
c280e23beb Merge branch 'master' of github.com:QL-Win/QuickLook 2019-05-26 18:45:17 +03:00
Paddy Xu
7ca2f61658 Fix #488: view SVG as webpage 2019-05-26 18:43:40 +03:00
Paddy Xu
c00224fb5f Upgrade NuGet packages 2019-05-26 18:39:20 +03:00
Paddy Xu
7e600490fc Update .appveyor.yml
Use VS2019 box
2019-05-26 18:25:36 +03:00
Paddy Xu
cdf3b261ef Use black icon when OS is in Light Mode; upgrade SDK 2019-05-26 18:21:15 +03:00
Paddy Xu
68248ce80f Update Translations.config
Add Slovak translation provided by Bašista Matej via email.
2019-05-23 22:34:58 +03:00
Paddy Xu
e216515aed Merge pull request #490 from Inchworm333/patch-1
Updated differences url in README
2019-04-07 12:17:09 +03:00
Nicholas Valletta
49e8588290 Updated differences url
The differences url was pointing to `Difference-Between-Distributions` instead of `Differences-Between-Distributions` (you forgot the s in differences is all)
2019-04-06 17:44:17 -04:00
Paddy Xu
fb209ce009 Merge pull request #489 from chiyi4488/master
Update Translations.config (zh-tw)
2019-04-05 11:01:06 +03:00
chiyi4488
03bf9e743c Update Translations.config 2019-04-05 10:14:42 +08:00
Paddy Xu
82447b3bc6 fxxk nuget 2019-03-30 18:43:51 +02:00
Paddy Xu
c555f462de Update .appveyor.yml 2019-03-30 18:16:26 +02:00
Paddy Xu
452e2df3d5 Fix #485: use default HTTP proxy when checking for updates 2019-03-30 17:20:04 +02:00
Paddy Xu
5b67135d6f update SharpCompress lib 2018-11-07 22:32:03 +02:00
Paddy Xu
5025b4169d Fix #361: seperate icons for share and open-with 2018-11-07 22:30:39 +02:00
Paddy Xu
7847a02840 Fix #377: truncate long lines for better performance 2018-11-07 21:40:18 +02:00
Paddy Xu
8e74040bb5 Close #387: update nconvert to v7.20 which fixes the Sony ARW bug; handle Apple HEIC 2018-11-07 21:22:26 +02:00
Paddy Xu
ea55fda70a use helper call 2018-11-07 20:32:47 +02:00
Paddy Xu
ea0032f3df Merge pull request #408 from Verrickt/feature/Per-Monitor-DPI-Awareness
Make QuickLook per monitor DPI aware
2018-11-07 20:26:46 +02:00
Paddy Xu
8630c116b5 Fix #371, #413: use statically linked EVR Dlls 2018-11-03 16:44:32 +02:00
Paddy Xu
69c46620ad Fix #417: search acTL chunk by block, instead of byte-by-byte 2018-11-01 23:58:51 +02:00
Verrickt
3de59702f4 Make HTML viewer and Markdown viewer per monitor DPI aware 2018-10-25 19:36:46 +08:00
Verrickt
4d04f152fd Enable WPF's native scaling 2018-10-25 19:23:04 +08:00
Verrickt
5af733d166 Declare per monitor DPI awareness 2018-10-25 19:22:30 +08:00
Paddy Xu
6768f44c8b Merge pull request #395 from akshaythakare7/master
Added Marathi and Hindi languages
2018-10-13 21:09:22 +03:00
akshaythakare7
ed6c7009b0 Added Marathi and Hindi font families 2018-10-13 20:41:12 +05:30
akshaythakare7
547f3dec8e Added Marathi and Hindi languages 2018-10-13 20:26:25 +05:30
Paddy Xu
e1dfcdd048 Merge pull request #382 from Retrobottega/master
Update Italian Translation
2018-10-01 16:35:32 +03:00
Paddy Xu
db871f8708 Merge pull request #381 from xoxoalfa/patch-1
Update Translations.config
2018-10-01 16:34:48 +03:00
SalGnt
0e3ac9c8b0 Update Italian Translation 2018-10-01 12:49:15 +02:00
xoxoalfa
60e57f74fa Update Translations.config
Hello. I've added Indonesia language for helping Indonesian user.
2018-09-30 19:10:16 +07:00
Paddy Xu
f80784aa5c Merge pull request #380 from Spiria/master
Add Korean translation
2018-09-29 10:05:27 +03:00
Yeohwan Yoon
e50fc55860 Add Korean translation 2018-09-29 12:24:14 +09:00
Paddy Xu
ffbf8faccd Update feature_request.md 2018-09-28 14:33:39 +03:00
Paddy Xu
d130c2a855 Update bug_report.md 2018-09-28 14:33:23 +03:00
Paddy Xu
e72989fe22 Update feature_request.md 2018-09-28 14:30:41 +03:00
Paddy Xu
c1facbef23 Update bug_report.md 2018-09-28 14:30:31 +03:00
Paddy Xu
9e6d7c5784 Update bug_report.md 2018-09-28 14:30:00 +03:00
Paddy Xu
f7c4cd08eb Update feature_request.md 2018-09-28 14:29:43 +03:00
Paddy Xu
3ba23320c0 Update feature_request.md 2018-09-28 14:29:02 +03:00
Paddy Xu
87fa3fbf70 Update bug_report.md 2018-09-28 14:28:30 +03:00
Paddy Xu
219551b747 Update feature_request.md 2018-09-28 14:27:10 +03:00
Paddy Xu
19b0a662d3 Update bug_report.md 2018-09-28 14:27:03 +03:00
Paddy Xu
561a3df448 Merge pull request #359 from bafsar/master
Turkish translation
2018-09-16 14:57:37 +03:00
Bilal AFŞAR
6d8375de9c Some translate correction 2018-09-16 01:42:52 +03:00
Bilal AFŞAR
1cc38e2535 Update Translations.config 2018-09-16 01:24:52 +03:00
Bilal AFŞAR
fdc4b4ef8d Turkish translation added
Also, language codes were sorted.
2018-09-16 00:33:23 +03:00
Bilal AFŞAR
042d3aa96b Turkish translation added
Also, language codes were sorted.
2018-09-16 00:32:06 +03:00
Paddy Xu
f0b2702e36 Update bug_report.md 2018-09-15 17:51:56 +03:00
Paddy Xu
49d0c9eebe Fix crash when closing preview quickly 2018-09-15 16:25:24 +03:00
Paddy Xu
9192b42be0 Fix #352. Window size should count borders in 2018-09-15 12:59:58 +03:00
Paddy Xu
1ad4e24a78 Merge pull request #350 from rabelux/UpdateREADME
Updated readme
2018-09-11 21:09:32 +03:00
Paddy Xu
d928d8841b Update README.md 2018-09-11 21:08:23 +03:00
Paddy Xu
3ff0dcc1ae Merge pull request #349 from rabelux/GerTranslationFix
Fix for german translation
2018-09-11 21:04:15 +03:00
Alexander Raab
7c64eca4fd Fix for german translation
- improved phrasing
- added translation for new "find Plugin"-element
2018-09-11 18:53:46 +02:00
Paddy Xu
a4256f54c9 Update Translations.config 2018-09-11 19:26:20 +03:00
Paddy Xu
7caf4f192e Update Translations.config
Fix #347: tooltip of the taskbar icon is too long
2018-09-11 19:25:24 +03:00
Alexander Raab
0706b625cf Update README.md
- clarified Descriptions and little reorder
- changed size of store-icon
- typo fixes
2018-09-11 15:42:12 +02:00
Alexander Raab
c45738db29 Update README.md
- linked plugin-page
- updated repo-links to latest
2018-09-11 13:32:58 +02:00
Paddy Xu
59191f8df2 Merge pull request #339 from r37r0m0d3l/ukrainian_translation
Ukrainian translation.
2018-09-09 00:38:51 +03:00
Anton Trofimenko
b0494bd5c8 Another small fix in Ukrainian translation. 2018-09-08 12:42:00 +03:00
Paddy Xu
08ccedece4 Fix #342: better async thumbnail loading 2018-09-07 21:33:49 +03:00
Anton Trofimenko
d231615550 Small fix in Ukrainian translation. 2018-09-06 22:28:15 +03:00
Anton Trofimenko
18fbe6a5a8 Added Ukrainian translation.
Updated and fixed Russian translation.
2018-09-04 23:35:07 +03:00
Paddy Xu
89f1bb46b6 Fix #337: Exif rotation is broken in WPF 2018-09-04 21:21:49 +03:00
Paddy Xu
a34bacb8f5 Update bug_report.md 2018-09-02 18:12:47 +03:00
Paddy Xu
78e3e3b7e1 update SDK version 2018-09-02 16:20:52 +03:00
Paddy Xu
fe14d53521 minor 2018-09-02 16:00:49 +03:00
Paddy Xu
9fb6ac8653 link to plugin list 2018-09-02 15:40:37 +03:00
Paddy Xu
45f09af98f move epubviewer to plugin 2018-09-02 15:08:39 +03:00
Paddy Xu
d9a024af37 we do not handle svg 2018-09-02 15:08:26 +03:00
Paddy Xu
b079e79561 read version 2018-09-02 15:08:09 +03:00
Paddy Xu
187fe2649b better NConvert decoding 2018-09-02 14:09:01 +03:00
Paddy Xu
e4db93704e let pdfviewer accepts streams 2018-09-02 13:44:53 +03:00
Paddy Xu
f98022401f Fix #327: archive failed. 2018-09-02 13:44:18 +03:00
Paddy Xu
eae3e300ef mistake ... 2018-09-02 10:44:03 +03:00
Paddy Xu
30c0c29d4a Update QuickLook.Plugin.PluginInstaller.csproj 2018-09-02 00:02:28 +03:00
Paddy Xu
8914ab9e46 use https url 2018-09-01 23:52:21 +03:00
Paddy Xu
9df88d5737 Update .appveyor.yml 2018-09-01 23:47:03 +03:00
Paddy Xu
7d0f1beaf2 Update .appveyor.yml 2018-09-01 23:46:29 +03:00
Paddy Xu
111861ec8b Merge pull request #335 from QL-Win/plugin-installer
Plugin installer
2018-09-01 23:43:03 +03:00
Paddy Xu
632f4492f5 move step 3 2018-09-01 22:11:17 +03:00
Paddy Xu
d0efbba02e Update .appveyor.yml 2018-09-01 21:52:38 +03:00
Paddy Xu
968e4b9ff0 Update .appveyor.yml 2018-09-01 21:45:59 +03:00
Paddy Xu
607391d25d move step 2 2018-09-01 21:40:22 +03:00
Paddy Xu
5e700019a1 move step 1 2018-09-01 21:39:40 +03:00
Paddy Xu
5cd9018ce4 done installer 2018-09-01 21:29:15 +03:00
Paddy Xu
953093390e remove anchor 2018-08-30 23:50:37 +03:00
Paddy Xu
1142fd1082 Merge branch 'master' of github.com:QL-Win/QuickLook 2018-08-30 23:47:34 +03:00
Paddy Xu
1f975d7dbd Fix #330: flexible scaling factor breaks pdf viewer 2018-08-30 23:47:20 +03:00
Paddy Xu
578c67ef0d Fix #312: scaling still wrong 2018-08-30 23:46:25 +03:00
Paddy Xu
75cbc90a1d Create .appveyor.yml 2018-08-29 00:19:37 +03:00
Paddy Xu
8ecf82db56 Delete .appveyor.yml 2018-08-29 00:07:56 +03:00
Paddy Xu
4f496f5ab8 wip plugin installer 2018-08-28 23:49:35 +03:00
Paddy Xu
695b42e82b Merge pull request #328 from QL-Win/nconvert
Nconvert
2018-08-28 22:48:58 +03:00
Paddy Xu
9832b0f99e done new image viewer 2018-08-28 22:48:10 +03:00
Paddy Xu
3bcb48a43c [WIP] apng provider 2018-08-28 00:16:25 +03:00
Paddy Xu
16452602eb Update feature_request.md 2018-08-25 17:04:26 +03:00
Paddy Xu
ed81280762 Update bug_report.md 2018-08-25 17:04:13 +03:00
Paddy Xu
ee6bca704d start working on NConvert 2018-08-12 15:26:03 +03:00
Paddy Xu
112f5409cf Update ViewerPanel.xaml.cs 2018-08-07 10:12:53 +03:00
Paddy Xu
cdc5f0f2f4 Do not crash when calling on network drives e.g. "\\vmware\shared" 2018-08-05 23:27:05 +03:00
Paddy Xu
6d3f4c4821 Try to fix #311: use new shortcut interface 2018-08-05 23:17:29 +03:00
Paddy Xu
b102d44046 write log when failed to create the shortcut 2018-08-05 21:23:59 +03:00
Paddy Xu
7f357e2586 fix build path 2018-08-05 21:23:41 +03:00
Paddy Xu
6b72f388f6 Fix #263, #308: mediainfo and video rotation 2018-08-04 17:15:57 +03:00
Paddy Xu
302c1b57f8 Try to fix #196: use unique pip name for every user 2018-08-01 00:40:43 +03:00
Paddy Xu
031f667caa remove useless signing scripts 2018-07-28 20:38:43 +03:00
Paddy Xu
10460da435 remove VLC, use DirectShow and LAV instead 2018-07-28 20:33:57 +03:00
Paddy Xu
8e482da448 Revert "Update README.md"
This reverts commit 648fdcca20.
2018-07-27 16:29:38 +03:00
Paddy Xu
648fdcca20 Update README.md 2018-07-27 11:46:08 +03:00
Paddy Xu
e2d555c22a Merge pull request #297 from gave92/master
Added .epub support
2018-07-24 22:09:04 +03:00
Paddy Xu
e7aee219b3 Code reformat and UI tweaks 2018-07-24 22:07:19 +03:00
Marco Gavelli
c1733a39fd Fixed image loading on certain ebooks 2018-07-19 00:09:54 +02:00
Marco Gavelli
d407c971ee Added cover page 2018-07-16 16:29:46 +02:00
Marco Gavelli
3e251c35ec ChapterChanged event 2018-07-16 14:17:45 +02:00
Marco Gavelli
02911d9550 Parse epub CSS 2018-07-16 12:13:40 +02:00
Marco Gavelli
917c3c0bb8 Fixed dependencies 2018-07-16 10:13:15 +02:00
Marco Gavelli
a82cacd126 Included epub library in plugin project 2018-07-16 10:06:17 +02:00
Marco Gavelli
a78428c698 Added EPUB plugin 2018-07-16 09:46:52 +02:00
Paddy Xu
0e28a4a006 Merge branch 'master' of github.com:xupefei/QuickLook 2018-07-14 17:44:37 +03:00
Paddy Xu
1ae40a0019 Fix #292: Handle possible exception when changing colour profile 2018-07-14 17:44:18 +03:00
Paddy Xu
d0dda4eb8e Merge pull request #294 from jrthsr700tmax/patch-1
Optimization Chinese (Taiwan) Language Quality
2018-07-14 16:47:32 +08:00
jrthsr700tmax
2a24de7616 Optimization Chinese (Taiwan) Language Quality
Optimization Chinese (Taiwan) Language Translation Quality
2018-07-13 17:59:41 +08:00
Paddy Xu
8cd957db6a Merge pull request #268 from trungdoan2507/patch-1
Add Vietnamese translation
2018-06-25 19:53:42 +03:00
Paddy Xu
f0131a36ac Merge branch 'master' of github.com:xupefei/QuickLook 2018-06-25 19:44:16 +03:00
Paddy Xu
4aa0d56503 Fix #261: ignore meaningless Exif data 2018-06-25 19:44:07 +03:00
trungdoan2507
b2c4e99650 Add Vietnamese translation 2018-06-24 23:52:37 +07:00
Paddy Xu
4528919814 Merge pull request #265 from revanmj/patch-2
Few fixes for Polish translation
2018-06-24 11:48:57 +03:00
Michał Jakubowski
22173bcb23 Few fixes for Polish translation
Fixed two typos and added missing translation for DriveSize (wanted to check where it is in the app and in the end forgot about it). Sorry for trouble :)
2018-06-24 09:58:52 +02:00
Paddy Xu
627b7ab6b8 Merge pull request #264 from revanmj/patch-1
Add Polish translation
2018-06-23 22:59:03 +03:00
Michał Jakubowski
77e9f18470 Add Polish translation 2018-06-23 21:19:45 +02:00
Paddy Xu
3d11c9b1f7 fix broken "keep in front" 2018-06-23 17:41:21 +03:00
Paddy Xu
a47b9854f3 Fix #120: Follow .lnk 2018-06-23 17:28:56 +03:00
Paddy Xu
382b9349be Darker text viewer 2018-06-23 16:39:42 +03:00
Paddy Xu
2743a83e27 Fix #166: hide controls from beginning 2018-06-23 16:39:32 +03:00
Paddy Xu
c771c72017 Merge branch 'master' of github.com:xupefei/QuickLook 2018-06-23 16:12:18 +03:00
Paddy Xu
6abca346be Stop using adaptive theme. Fix #194. 2018-06-23 16:12:08 +03:00
Paddy Xu
2fc73a0c45 Update GifAnimationProvider.cs 2018-06-15 22:40:05 +03:00
Paddy Xu
db31458ffe done new image viewer. RAW problem remaining. 2018-06-15 22:35:22 +03:00
Paddy Xu
395d4bbc86 Rename GIFAnimationProvider.cs to GifAnimationProvider.cs 2018-06-14 00:19:17 +03:00
Paddy Xu
cc48d9427a done new Gif render 2018-06-14 00:02:52 +03:00
Paddy Xu
c13839cb19 working on new Gif viewer 2018-06-13 18:43:33 +03:00
Paddy Xu
d4feb2c867 update packages 2018-06-06 20:15:36 +03:00
Paddy Xu
2e370cc972 Fix #249: handle Unicode file names in PDF viewer 2018-06-06 20:05:47 +03:00
Paddy Xu
10b2c4b47c Update README.md 2018-06-03 12:27:27 +03:00
Paddy Xu
3f1b943876 fix #70, #126: switch between Light and Dark background 2018-06-02 16:34:10 +03:00
Paddy Xu
d36da88f31 use Share UI on Windows 10 16299 and later 2018-06-02 15:27:14 +03:00
Paddy Xu
b0b07e443c move up to 17134 SDK 2018-06-02 13:35:54 +03:00
Paddy Xu
2e1e759b76 Update issue templates 2018-06-02 12:58:34 +03:00
Paddy Xu
db7b90c328 Merge pull request #245 from ryoon/fix-gpl3-link
FIx GPL3 link
2018-05-25 16:39:27 +03:00
Ryo ONODERA
8039134d6b FIx GPL3 link 2018-05-25 22:30:42 +00:00
Paddy Xu
3905b8305d Update bug_report.md 2018-05-22 15:10:36 +03:00
Paddy Xu
9f9a39d1f0 Update issue templates 2018-05-19 15:51:12 +03:00
Paddy Xu
40263e766d revert "showing in taskbar when pinned" since it cause window flashing 2018-04-18 22:26:34 +03:00
Paddy Xu
63e466e16d Merge branch 'master' of github.com:xupefei/QuickLook 2018-04-18 22:23:34 +03:00
Paddy Xu
8c4a37e3a6 Global dark theme 2018-04-18 22:23:28 +03:00
Paddy Xu
8a18bc3dd1 Merge pull request #218 from showerATP/patch-1
Fix typo
2018-04-03 22:32:28 +03:00
shower
8e71ccee3b Fix typo
Fix typo
2018-04-03 18:18:36 +08:00
Paddy Xu
9eea55b7aa Fix #212: persistent Stay on Top 2018-03-24 11:45:54 +02:00
Paddy Xu
d9bcce1a21 Fix #197 and #209: video window size and .ts extension error 2018-03-24 11:39:20 +02:00
Paddy Xu
8e7f398626 Add Russian translation from # 211 2018-03-24 11:15:18 +02:00
Paddy Xu
fa3d63322c Merge pull request #203 from levrik/patch-1
Improve German translations
2018-03-12 20:30:51 +02:00
Paddy Xu
071126801e Merge pull request #200 from adrianghc/master
Use correct registry key for installer
2018-03-12 20:30:25 +02:00
Paddy Xu
4030f6f971 minor UI tweak: show in taskbar when pinned 2018-03-12 20:29:33 +02:00
Levin Rickert
7253252421 Improve German translations 2018-03-11 21:58:50 +01:00
Adrian GHC
6a05513931 Use correct registry key for installer 2018-03-08 00:06:46 +01:00
Paddy Xu
56b86ffb03 copy buffer before showing 2018-03-06 20:27:39 +02:00
Paddy Xu
aba242d14c improve message texts as requested by Fujitsu 2018-03-06 20:03:14 +02:00
Paddy Xu
c0c2036686 fix null reference exception reported by Windows Store 2018-03-04 15:40:21 +02:00
Paddy Xu
347faf6a03 do not delete cached cover, fix #195 2018-02-28 18:32:53 +02:00
Paddy Xu
16fa2d5997 add resize grip and adjust video control margin for easier resizing 2018-02-25 12:42:52 +02:00
Paddy Xu
9dad245027 show gridlines 2018-02-25 12:35:25 +02:00
Paddy Xu
d1bb5fe847 Fix #192: why I changed this in 5c02a8c9cf9fa5602957c2c3bdc86ae160430c46? 2018-02-25 12:25:35 +02:00
Paddy Xu
4e843637cb hide viewer while loading 2018-02-25 12:25:35 +02:00
Paddy Xu
cc001bd8d7 add syntax files 2018-02-25 12:25:34 +02:00
Paddy Xu
d517550994 Update README.md 2018-02-25 00:52:28 +02:00
Paddy Xu
5bc46846a5 Merge pull request #193 from szensk/master
Load highlighting files from the Syntax directory
2018-02-25 00:15:21 +02:00
Paddy Xu
bec5189a1c update code style and make file-loading async 2018-02-25 00:14:29 +02:00
szensk
eb6e1c9d2e load syntax files from plugin directory 2018-02-24 02:10:50 -06:00
Paddy Xu
a20b4714ec fix possible crash (?) due to DateTime format 2018-02-18 19:07:44 +02:00
Paddy Xu
354bbfc1ca fix crash 2018-02-12 21:06:20 +02:00
Paddy Xu
4133d2148c do not show info icon; do not retain window position (fix for #179); update NuGet packages 2018-02-12 19:30:38 +02:00
Paddy Xu
4e356f9e77 remove useless code 2018-02-12 19:30:37 +02:00
Paddy Xu
39b93b11f1 Fix #173: new OpenWith icon 2018-02-12 19:30:32 +02:00
Paddy Xu
189e3a70d1 Fix #175: do not restore position when closing maximised 2018-02-12 19:30:32 +02:00
Paddy Xu
b04fbabae6 Fix windows timer resolution 2018-02-12 19:30:31 +02:00
Paddy Xu
dada8bc6e7 Revert "make xml"
This reverts commit 5c8c33633a7351c2cf3dccfe9246f61af44b9de1.
2018-02-12 19:30:31 +02:00
Paddy Xu
6f60f41d1c make xml 2018-02-12 19:30:30 +02:00
Paddy Xu
6bc990bbf9 move to Plugin namespace 2018-02-12 19:30:30 +02:00
Paddy Xu
197bfee1da fix path 2018-02-12 19:30:29 +02:00
Paddy Xu
57f129bda3 fix translations and settings 2018-02-12 19:30:29 +02:00
Paddy Xu
56af2311b9 abstract plugin interface 2018-02-12 19:30:28 +02:00
Paddy Xu
d50d757022 tooltip 2018-02-12 19:30:27 +02:00
Paddy Xu
fa0824bce9 remember volume 2018-02-12 19:30:27 +02:00
Paddy Xu
5b0da969af delete cover art when close 2018-02-12 19:30:04 +02:00
Paddy Xu
d2fdcd240b back to vlc 2018-02-12 19:30:01 +02:00
Paddy Xu
3f9794c2a4 Update README.md 2018-02-08 20:05:45 +02:00
Paddy Xu
aa716dd04b update FFME to fix IsDisposed issue: unosquare/ffmediaelement#147 2018-02-01 20:35:17 +02:00
Paddy Xu
804876a987 remove strong-name signing 2018-01-27 14:44:53 +02:00
Paddy Xu
a63fd77a50 shutdown old thread 2018-01-27 10:35:20 +02:00
Paddy Xu
914cc7c3a7 Merge branch 'master' of github.com:xupefei/QuickLook 2018-01-27 10:34:33 +02:00
Paddy Xu
bb7fb114f8 Revert "shutdown old thread"
This reverts commit 3ff693ac37.
2018-01-27 10:31:03 +02:00
Paddy Xu
3ff693ac37 shutdown old thread 2018-01-26 15:42:09 +02:00
Naoto Ishida
3c229a8526 Add Japanese language support (#164) 2018-01-25 18:18:24 +02:00
Patrick Sletvold
36484beb58 Add Norwegian (bokmål) translation (#171)
* Add Norwegian translation

* Add Norwegian translation
2018-01-25 18:12:32 +02:00
Paddy Xu
2af22cde92 temporary ugly fix for memory leak 2018-01-25 02:18:02 +02:00
Paddy Xu
a17b7f05d7 cancel waiting pipe commands 2018-01-24 23:01:29 +02:00
Paddy Xu
c1bcf311bc fix #115 and #129: use FFmpeg 3.4.0 GPL libs, use ffme 2.0.b9 with patch unosquare/ffmediaelement#147 and autogen 3.4.0.2 2018-01-24 23:01:00 +02:00
Paddy Xu
76dd2feb30 remove all destructors 2018-01-24 19:11:49 +02:00
Paddy Xu
4b9b6c7233 fix: window not closing when pressing Spacebar while having focus 2018-01-24 19:11:48 +02:00
Paddy Xu
6d78650b12 Update ViewWindowManager.cs 2018-01-21 16:43:16 +02:00
Paddy Xu
e40bac0924 Update ViewWindowManager.cs 2018-01-21 16:42:37 +02:00
Paddy Xu
5c0f88a961 write error log to file 2018-01-21 16:36:18 +02:00
Paddy Xu
5667f98a01 handle TagLib exception 2018-01-21 16:11:20 +02:00
Paddy Xu
35c22db10c Fix #163: add .ts and .tp (=m2ts) format 2018-01-21 13:43:51 +02:00
Paddy Xu
5c02a8c9cf Fix #162: switch preview when calling from command-line 2018-01-20 16:42:07 +02:00
Paddy Xu
2ba3fcdf6e Continue on f321e243ba: fix broken window positioning 2018-01-13 00:38:05 +02:00
Paddy Xu
a969687b7b Bring back transparent window 2018-01-12 23:30:25 +02:00
Paddy Xu
c622ed748a enlarge initial pdf page size: address #143. 2018-01-09 23:49:16 +02:00
Paddy Xu
3be25ac28f Continue on f321e243ba: adjust maximize behaviour 2018-01-08 21:04:40 +02:00
Paddy Xu
0914b264f4 Hide meta icon in Pdf viewing 2018-01-08 21:04:40 +02:00
Paddy Xu
c791add587 Update README.md 2017-12-29 21:22:40 +02:00
Paddy Xu
311d723bb3 write error log to Event 2017-12-28 22:46:15 +02:00
Paddy Xu
c78fbb009a Fix #153: determine imagetype by signature 2017-12-28 22:37:10 +02:00
Krasnaya Ploshchad’
a502b2363a Update README.md (#156)
Microsoft renamed Windows Store to Microsoft Store, this following that.
2017-12-25 10:16:12 +02:00
Paddy Xu
b4198f61f2 Show Exif info when previewing images 2017-12-22 19:24:17 +02:00
Paddy Xu
9369a94350 Update README.md 2017-12-22 13:58:46 +02:00
Paddy Xu
1052d873e1 update NuGet packages 2017-12-22 13:21:00 +02:00
Paddy Xu
97b749e64f async archive loading 2017-12-22 13:19:49 +02:00
Paddy Xu
dedac98702 Continue on f321e243ba: handle failure 2017-12-22 11:52:48 +02:00
Paddy Xu
3014b30358 do not show header 2017-12-22 11:52:10 +02:00
Paddy Xu
99d067ea2d remove useless references 2017-12-22 10:53:12 +02:00
Paddy Xu
abc80e046d fix Pdf zoom-to-fit issue when switching pages 2017-12-22 10:52:37 +02:00
Paddy Xu
fe39854b57 Fix #154: Switch to Pdfium; better PDF async loading 2017-12-22 01:28:30 +02:00
Paddy Xu
1bcfd8db08 handle icon exception 2017-12-21 22:15:11 +02:00
Paddy Xu
f0990faa56 Revert "Async call sometimes crash because NullReferenceException at <BeginShow>b__0()"
This reverts commit b0e4f19491.
2017-12-21 18:54:24 +02:00
Paddy Xu
b0e4f19491 Async call sometimes crash because NullReferenceException at <BeginShow>b__0() 2017-12-21 18:03:32 +02:00
Paddy Xu
f321e243ba Test: use new window each time (some people report a slowness... but I can't reproduce) 2017-12-20 22:23:07 +02:00
Paddy Xu
6cd837b423 Parallel PDF rendering 2017-12-09 15:55:24 +02:00
Paddy Xu
82994b69bc Merge branch 'master' of github.com:xupefei/QuickLook 2017-12-09 14:37:59 +02:00
Paddy Xu
b1e5ce0172 Fix #150: make use of color space assigned with image 2017-12-09 14:37:53 +02:00
ARL
50d839a02f French translation (#147)
* Add french language Translations.config

* Add french language TextViewer
2017-12-05 10:25:47 +02:00
Ecron
18f3f57606 Catalan translation (#142)
* Catalan translation

Added Catalan translation

* Added Catalan translation

Added Catalan translation
2017-12-01 12:11:57 +02:00
arca20
1988cd3c09 Translate in German(de-DE) (#141)
* -translate to German (de-DE)

* correction the Translations.config
2017-11-29 10:22:48 +02:00
Paddy Xu
d481bcdceb reformat 2017-11-23 22:21:58 +02:00
Paddy Xu
df0ba78298 Address #122: final solution for window resizing by bring macOS's logic 2017-11-23 22:20:25 +02:00
Paddy Xu
2fda049c26 fix 03807a1afb 2017-11-19 21:58:06 +02:00
Paddy Xu
f8d24aa191 add 1px border for keeping resizing 2017-11-17 20:08:37 +02:00
Paddy Xu
057126a7a0 deal with CreateProcess failure 2017-11-17 12:29:50 +02:00
Paddy Xu
1980ed1590 do not crash when Plugin.Prepare() failed 2017-11-17 12:14:49 +02:00
Paddy Xu
93dae0a8ca #116: indicate current zoom level for images 2017-11-16 22:47:23 +02:00
Paddy Xu
734b0e36e3 Fix #128: the "previous state" of a "DisposeOpPrevious" frame is its previous frame - for example,
1: APNGDisposeOpNone
2: APNGDisposeOpNone        // should use rendered frame 1
3: APNGDisposeOpPrevious    // should use rendered frame 1
4: APNGDisposeOpPrevious    // should use rendered frame 1, NOT frame 2
5: APNGDisposeOpNone        // should use rendered frame 4
2017-11-16 18:53:12 +02:00
Paddy Xu
0d07315253 Update README.md 2017-11-15 22:48:27 +02:00
Paddy Xu
0320ce13b4 Merge branch 'master' of github.com:xupefei/QuickLook 2017-11-15 20:45:26 +02:00
Paddy Xu
03807a1afb handle corrupted configuration when upgrading. 2017-11-15 20:45:11 +02:00
Paddy Xu
02f2cef5e3 Update README.md 2017-11-14 11:10:37 +02:00
Paddy Xu
462891951b Fix #121: do not preview when pressing Win key 2017-11-12 13:44:33 +02:00
Paddy Xu
5a83dce8ed sometime this throws 2017-11-09 20:22:42 +02:00
Paddy Xu
04b1180b26 add mts format 2017-11-09 20:22:24 +02:00
Paddy Xu
ba6efbe8ea Fix #56#issuecomment-342538426: use colourful icon on pre Windows 10 OSs 2017-11-07 18:39:21 +02:00
Paddy Xu
6b2a481cf2 preview size, continued 2017-11-07 18:34:27 +02:00
Paddy Xu
d6aa4d6959 Fix #114: now the preview window should big enough 2017-11-07 18:20:11 +02:00
Paddy Xu
e56c33cbd8 Merge branch 'master' of github.com:xupefei/QuickLook 2017-11-06 20:09:09 +02:00
Paddy Xu
0e5809120d Fix #113: read buffer before waiting 2017-11-06 20:09:01 +02:00
Paddy Xu
42cbf9ecdf Update README.md 2017-11-06 10:21:23 +02:00
Paddy Xu
a2660fc15c use vc2008 binaries 2017-11-06 00:26:05 +02:00
Paddy Xu
31279b1015 Partially revert "update scripts"
This reverts commit a5320b28ee.
2017-11-06 00:12:18 +02:00
Paddy Xu
ff7d9c0aa9 distribute long class 2017-11-05 23:10:10 +02:00
Paddy Xu
c643d9a4f5 Merge branch 'master' of github.com:xupefei/QuickLook 2017-11-05 22:59:47 +02:00
Paddy Xu
d34e1d379c adjust resize behaviour 2017-11-05 22:59:35 +02:00
Paddy Xu
c9ca36085e Merge pull request #111 from BarretoDiego/master
pt-BR localization
2017-11-05 02:16:48 +02:00
Paddy Xu
24fafc5746 Fix #106: display thumbnails 2017-11-05 02:15:00 +02:00
Diego Barreto da Cunha
de7e09acc7 pt-BR localization
Added string configuration for Brazilian Portuguese language.
2017-11-04 20:28:25 +00:00
Paddy Xu
edc073a0ea dark theme for ImageViewer 2017-11-04 16:30:56 +02:00
Paddy Xu
49e9ccd0ca Fix #98: preserve window size when switching to another file 2017-11-04 14:31:28 +02:00
Paddy Xu
775c63a301 use Windows SDK 16299 2017-11-04 13:45:04 +02:00
Paddy Xu
de07befb88 Fix #102: unfortunately QL does not run on Windows 10 S 2017-11-04 13:33:01 +02:00
Paddy Xu
59d957f06c Fix #93: do not hide title bar for ImageViewer 2017-11-04 11:07:17 +02:00
Paddy Xu
7ba410bb4e limit title-bar button width; minor fixes and cleanup 2017-11-02 22:32:49 +02:00
Paddy Xu
5055669981 Fix #103: make title-bar button wider 2017-11-02 22:32:11 +02:00
Paddy Xu
8440bc6fc7 remove transparent window 2017-11-02 21:49:20 +02:00
Paddy Xu
fe5e8bf730 fix again 2017-11-02 20:55:39 +02:00
Paddy Xu
9b2beb3d37 fix build 2017-11-02 20:18:40 +02:00
Paddy Xu
1b1b74f39b Merge branch 'master' of github.com:xupefei/QuickLook 2017-11-02 20:07:30 +02:00
Paddy Xu
5db88cffe3 bye vlc 2017-11-02 20:07:23 +02:00
Paddy Xu
c1406e6bfc Update README.md 2017-10-31 12:51:48 +02:00
Paddy Xu
6bfd26bf0c Merge pull request #108 from Cologler/patch-1
fixed #105
2017-10-30 15:44:33 +02:00
cologler
22fda2dbba fixed #105 2017-10-30 21:35:01 +08:00
Paddy Xu
470eb93a3f Update README.md 2017-10-29 12:29:58 +02:00
Paddy Xu
ea4c1cbb92 remove round corner in WIndows 7 2017-10-22 18:39:28 +03:00
Paddy Xu
c15f589a8f do not crash when other threads failed 2017-10-22 16:34:19 +03:00
Paddy Xu
778c578656 use LGPL builds 2017-10-22 16:33:26 +03:00
Paddy Xu
b34c890d3e update app icons 2017-10-22 15:40:32 +03:00
Paddy Xu
63e7b3dd89 fix memory leak 2017-10-19 22:31:58 +03:00
Paddy Xu
db9111ff22 Separate TopMost and Pin buttons 2017-10-17 00:18:58 +03:00
Paddy Xu
c11bd9dc7b HW acceleration for videos 2017-10-16 22:43:51 +03:00
Paddy Xu
61d4f7d2c2 go back to FFME. There is still a memory leak for cover arts. 2017-10-16 00:40:01 +03:00
Paddy Xu
95995eab0e remove Vlc libs and add home-cooked GPL ffmpeg libs 2017-10-15 20:01:00 +03:00
Paddy Xu
1b2f5fabfa Fix #101: Do not preview when Listary toolbar is visible 2017-10-15 18:04:22 +03:00
Paddy Xu
3f262dfcd2 upgrade NuGet packages 2017-10-15 16:27:17 +03:00
Paddy Xu
6e5e7cb891 Fix #92: Make sure the handle is closed 2017-10-15 16:10:29 +03:00
Paddy Xu
66fdeefe84 Revert "Limit max size of "open with" button"
This reverts commit 4d564e29de.
2017-10-14 23:32:43 +03:00
Paddy Xu
59c4216bca Fix #93: Ignore image resolutions 2017-10-14 22:32:05 +03:00
Paddy Xu
d36278fd5e Do not show page list for single-page PDFs 2017-10-14 19:00:30 +03:00
Paddy Xu
4d564e29de Limit max size of "open with" button 2017-10-14 19:00:29 +03:00
Paddy Xu
ebac276af7 Upgrade to new Windows SDK 2017-10-14 19:00:29 +03:00
Paddy Xu
5a3df33890 Merge pull request #99 from Retrobottega/master
Added Italian Translation
2017-10-07 20:22:14 +03:00
Salvatore Gentile
4f86e075e0 Added Italian Translation 2017-10-07 16:29:49 +02:00
Paddy Xu
333857ff81 Fix #78: Use Gif Disposal flag in the correct way 2017-10-05 20:54:57 +03:00
Paddy Xu
abd69a2acd Merge pull request #89 from Scarwoman/patch-5
Update Translations.config
2017-10-01 09:54:48 +02:00
Paddy Xu
a6bf4fc2fc Merge pull request #88 from Scarwoman/patch-3
Update Translations.config
2017-10-01 09:54:38 +02:00
Scarwoman
2ca07cafd0 Update Translations.config 2017-09-28 11:15:08 +02:00
Scarwoman
f2e6244b4a Update Translations.config
Dutch and belgium translation
2017-09-28 11:12:08 +02:00
Scarwoman
01d53fe29c Update Translations.config
Dutch translation
2017-09-28 10:56:12 +02:00
Paddy Xu
7c0380c25e change background color to (very) light gray 2017-08-19 13:39:15 +03:00
Paddy Xu
2a9777e3e7 Update README.md 2017-08-19 13:30:38 +03:00
Paddy Xu
96efbbcc9f Merge pull request #71 from emannxx/master
Portuguese language translation
2017-08-19 12:34:44 +03:00
Emanuel Alves
4d07fc41f0 Text-Viewer 2017-08-15 01:24:40 +01:00
Emanuel Alves
a1320fe8da Portuguese language translation 2017-08-15 01:16:36 +01:00
Paddy Xu
b4ed9b4e7d add volume slider 2017-08-13 23:01:07 +03:00
Paddy Xu
11ab3d7c42 restore determining PDF fiels via file content for previewing .ai files. 2017-08-13 22:27:55 +03:00
Paddy Xu
fcee5844cc use VS tile generator for tile images 2017-08-13 18:40:54 +03:00
Paddy Xu
bff0dcfb7a make blur invisible by default, remove colored title bar on InfoPanel 2017-08-13 11:08:20 +03:00
Paddy Xu
589693778a shorter auto-hide time 2017-08-13 11:03:18 +03:00
Paddy Xu
dbbdfe876c Fix #68: do not show preview when not activated 2017-08-13 11:00:14 +03:00
Paddy Xu
04b9f7b5c1 update readme 2017-08-13 01:08:41 +03:00
Paddy Xu
1d7c95a822 update tile images 2017-08-13 00:20:01 +03:00
Paddy Xu
e4ab7d0a32 new icons 2017-08-12 23:31:50 +03:00
Paddy Xu
6027a387b0 Fix ZoomToFit 2017-08-12 21:21:16 +03:00
Paddy Xu
3e2336a63d Fix #63: add Netpbm formats 2017-08-12 21:20:57 +03:00
Paddy Xu
1260afb2c4 Merge pull request #67 from xupefei/fluent
Redesigned UI according to the Fluent design system
2017-08-12 20:58:35 +03:00
Paddy Xu
dbee403b59 Merge branch 'master' into fluent 2017-08-12 20:55:33 +03:00
Paddy Xu
7676d5867b all operations pass though Pipe 2017-08-12 18:20:29 +03:00
Paddy Xu
6bae00361b minor zoom improvements 2017-08-12 01:19:10 +03:00
Paddy Xu
1c18890fbf add Segoe MDL2 font as assets: this font allows editable embedding 2017-08-11 23:16:35 +03:00
Paddy Xu
8e400e7ee5 fix blur coordinate error 2017-08-11 20:14:45 +03:00
Paddy Xu
cd9b713c41 Finish ViedoViewer (except volume slider) 2017-08-11 00:29:24 +03:00
Paddy Xu
9ce0776d53 almost done videoviewer. WIP modify app style to per-window one. 2017-08-10 01:15:32 +03:00
Paddy Xu
346ec59ea5 Merge pull request #64 from KrasnayaPloshchad/patch-3
Minor fix for zh-TW translation
2017-08-10 01:14:50 +03:00
Krasnaya Ploshchad’
bc533f3d18 Minor fix for zh-TW translation 2017-08-09 19:05:05 +08:00
Paddy Xu
efaca311fc wip videoviewer 2017-08-08 23:19:46 +03:00
Paddy Xu
2b3338cc43 dark theme; wip videopleyer 2017-08-06 23:33:01 +03:00
Paddy Xu
56cb31fd2a finish auto-hide 2017-08-06 21:01:02 +03:00
Paddy Xu
5b97e7ef60 wip 2 2017-08-06 17:27:30 +03:00
Paddy Xu
3a20245304 wip 2017-08-06 15:06:55 +03:00
Paddy Xu
768425ad0f add inner padding 2017-08-06 00:39:41 +03:00
Paddy Xu
60cd782c64 WIP: more new styles 2017-08-06 00:17:51 +03:00
Paddy Xu
8d59e7138c WIP #56: adjust shadows; add Gaussian blur, try out the new InfoPanel 2017-08-04 22:07:42 +03:00
Paddy Xu
e79de6c36d use native rotate method suggested by @dlemstra 2017-08-04 22:07:02 +03:00
Paddy Xu
810de851ff Merge pull request #60 from KrasnayaPloshchad/patch-3
Improve font family for zh-TW locale
2017-08-04 18:58:58 +03:00
Krasnaya Ploshchad’
15af258db0 Improve zh-TW font family
zh-TW locale generally does not use SimSun, use MingLiU instead.
2017-08-04 23:23:24 +08:00
Paddy Xu
15d94d2c4b Merge pull request #59 from KrasnayaPloshchad/patch-1
TextViewer: Add Korean fonts used for Korean locale
2017-08-04 16:50:59 +03:00
Krasnaya Ploshchad’
dae2a3a512 Add Korean fonts 2017-08-04 21:05:55 +08:00
Paddy Xu
2575d4c909 update vlclib caches 2017-08-02 00:50:34 +03:00
Paddy Xu
f15f65192d sign all compoments 2017-08-02 00:29:41 +03:00
Paddy Xu
dad0f0e962 add missing vlc libs 2017-08-02 00:13:21 +03:00
Paddy Xu
7d8a728925 move cover arts later as UWP is not happy with this 2017-08-02 00:00:00 +03:00
Paddy Xu
bf2f0f5ad7 Fix #50: window moved unexpectedly when new size is smaller than min size 2017-08-01 23:44:52 +03:00
Paddy Xu
3994039864 async Vlc disposal 2017-08-01 23:39:44 +03:00
Paddy Xu
a5320b28ee update scripts 2017-08-01 23:29:10 +03:00
Paddy Xu
94a18707dd let WPF do the decoding 2017-08-01 23:28:58 +03:00
Paddy Xu
67cc8aa480 refine 2017-08-01 23:06:38 +03:00
Paddy Xu
da66c27580 Fix #55: singular form for InfoPanel; add zh-TW translation 2017-08-01 23:00:00 +03:00
Paddy Xu
4acac51a8d do not rotate unless nessessary 2017-08-01 22:05:25 +03:00
Paddy Xu
94075595de switch to LibVlc 2017-08-01 21:28:50 +03:00
Paddy Xu
5ac88dbd1c remove languages other than en-us in AppxManifest.xml 2017-07-31 01:39:33 +03:00
Paddy Xu
24c03163f6 let textviewer be piror to videoviewer 2017-07-31 00:34:42 +03:00
Paddy Xu
4ffe24f427 useless 2017-07-31 00:19:40 +03:00
Paddy Xu
2f12127cc9 Use my home-made GIF and APNG animator. It's really save CPU compared to previous one! 2017-07-31 00:14:21 +03:00
Paddy Xu
071a3b4f22 remove handler when disposing 2017-07-31 00:11:58 +03:00
Paddy Xu
6465ea9ed6 minor changes 2017-07-30 23:37:07 +03:00
Paddy Xu
c97f932bc3 faster text checking 2017-07-30 23:35:52 +03:00
Paddy Xu
41aa42d897 refine UI and stability 2017-07-30 01:18:37 +03:00
Paddy Xu
76dbdcdfa0 Merge branch 'ffme' 2017-07-29 22:35:23 +03:00
Paddy Xu
76b6b648cc fix rm issue 2017-07-29 22:35:06 +03:00
Paddy Xu
694713ba17 set limit to button size 2017-07-29 22:34:59 +03:00
Paddy Xu
6c64aa7c3d switch to new FFME control 2017-07-29 22:29:06 +03:00
Paddy Xu
882078cd60 set limit to button size 2017-07-29 22:28:48 +03:00
Paddy Xu
19773884de fix rm issue 2017-07-29 22:28:26 +03:00
Paddy Xu
dad30d33bd move to new FFME control and probe media info 2017-07-29 16:20:16 +03:00
Paddy Xu
bf199478d7 Merge branch 'master' into ffme 2017-07-29 12:12:23 +03:00
Paddy Xu
a5df20851d add seek buttons 2017-07-29 11:49:48 +03:00
Paddy Xu
227cc6eb49 add FFmpeg 3.2.4 GPL binaries 2017-07-29 00:29:46 +03:00
Paddy Xu
f03719af81 modernise video player UI 2017-07-29 00:19:50 +03:00
Paddy Xu
73d131972a animate the pinned button 2017-07-28 22:25:07 +03:00
Paddy Xu
fa2e34a065 Fix #46: turn the 📌 icon into ✖ after pinned 2017-07-28 20:49:49 +03:00
Paddy Xu
2204f27b01 Hopefully fix a crash bug related to #32, #37 and #44 2017-07-27 23:36:30 +03:00
Paddy Xu
3fb18391df move cmd to ps 2017-07-25 23:29:51 +03:00
Paddy Xu
2138c0e123 add hi-res images to .appx packaging 2017-07-25 23:22:07 +03:00
Paddy Xu
3df710e1fc minor adjustments 2017-07-24 23:05:17 +03:00
Paddy Xu
f627011802 fix scrollbar bug 2017-07-24 21:41:04 +03:00
Paddy Xu
2ef607ecb9 unify file encoding 2017-07-23 22:43:17 +03:00
Paddy Xu
2820b840e4 show update log after upgraded 2017-07-23 22:39:44 +03:00
Paddy Xu
78fe8d2558 replace old Ude lib with new library 2017-07-23 20:18:27 +03:00
Paddy Xu
7b6fa41baf detect string encoding when previewing .zip files, fix #24. 2017-07-23 20:16:57 +03:00
Paddy Xu
44f52db289 Handle MHTML formats 2017-07-23 16:04:59 +03:00
Paddy Xu
75bed46029 add modifier key to menu item 2017-07-23 15:12:42 +03:00
Paddy Xu
fe5079a571 Merge pull request #40 from balboag/master
Spanish (Spain) translation
2017-07-23 15:03:23 +03:00
Paddy Xu
fd1fdf1c73 get rid of warning 2017-07-23 15:00:34 +03:00
Paddy Xu
45b7361e79 longer update notification time 2017-07-23 15:00:18 +03:00
Paddy Xu
b0e8a29f85 More natural scroll behaviour 2017-07-23 00:44:43 +03:00
Paddy Xu
86dacf6e73 pinch zoom gesture; rewrite zoomviewer 2017-07-22 23:51:39 +03:00
Paddy Xu
e05ef2e969 padding right 2017-07-22 13:35:03 +03:00
Paddy Xu
ea15722629 indicate UWP app in context menu 2017-07-21 19:37:24 +03:00
Paddy Xu
a370b8a7e1 Update README.md 2017-07-21 19:02:08 +03:00
Paddy Xu
83713412f2 Update README.md 2017-07-21 18:48:17 +03:00
Paddy Xu
c50aa6c312 Update README.md 2017-07-21 18:47:57 +03:00
Paddy Xu
5f6c5d0e07 Give buttons a slightly ligher colour 2017-07-18 20:43:14 +03:00
Gerardo
72d5f232d6 Spanish (Spain) translation 2017-07-17 21:24:09 +02:00
Paddy Xu
4cc98c59fd add files for packing .appx 2017-07-17 00:45:01 +03:00
Paddy Xu
61fc320b8f Dispose windows before exiting 2017-07-15 23:04:13 +03:00
Paddy Xu
9ca358bd5a Use signed Ude lib 2017-07-15 23:03:47 +03:00
Paddy Xu
61074fea2c Revert "Sign all projects with strong names"
This reverts commit d98afaa4dc.
2017-07-15 21:29:35 +03:00
Paddy Xu
6453b74a96 Update README.md 2017-07-15 15:50:57 +03:00
448 changed files with 53962 additions and 12112 deletions

View File

@@ -1,15 +1,28 @@
version: '{build}'
image: Visual Studio 2017
branches:
only:
- master
skip_branch_with_pr: true
image: Visual Studio 2019
configuration: Release
platform: Any CPU
clone_script:
- cmd: >-
git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
cd %APPVEYOR_BUILD_FOLDER%
git checkout -qf %APPVEYOR_REPO_COMMIT%
git submodule update --init --recursive
cache:
- packages -> **\packages.config
- '%USERPROFILE%\.nuget\packages -> **\project.json'
before_build:
- ps: >-
$env:GIT_TAG = git describe --always --tags
nuget restore
nuget restore -verbosity detailed
build:
verbosity: minimal
after_build:
@@ -25,3 +38,12 @@ artifacts:
name: QuickLook-%GIT_TAG%
- path: QuickLook-%GIT_TAG%.msi
name: QuickLook-%GIT_TAG%
deploy:
- provider: GitHub
auth_token:
secure: 5CSvkfKBq9kUho529L1tkH5ywQQFJY/A8Y6lNoHGJFi7mnSqQAaoiVPbUVU4a/KC
artifact: QuickLook-$(APPVEYOR_REPO_TAG_NAME)
draft: true
on:
branch: master
APPVEYOR_REPO_TAG: true

29
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,29 @@
---
name: Report a bug
about: Please follow this template or your issue will be closed
---
*For all's convenience, please use English to fill this issue.*
*Please search within existing issues before the submission. Has this issue already been reported?*
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Desktop (please complete the following information):**
- OS Version: [e.g. Windows 10 1803]
- QuickLook Version: [e.g. 0.3.3 from Windows Store]
**Screenshots and Exception Log**
If applicable, add screenshots and logs to help explain your problem. The log file is located in `%APPDATA%\pooi.moe\QuickLook\QuickLook.Exception.log` (`.msi` or `.zip` version) or `%LOCALAPPDATA%\Packages\21090PaddyXu.QuickLook_egxr34yet59cg\LocalCache\Roaming\pooi.moe\QuickLook\QuickLook.Exception.log` (Windows Store version).

View File

@@ -0,0 +1,19 @@
---
name: Suggest a new idea
about: Please follow this template or your issue will be closed
---
*For all's convenience, please use English to fill this issue.*
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

8
.gitignore vendored
View File

@@ -17,8 +17,6 @@
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
@@ -290,4 +288,8 @@ __pycache__/
/QuickLook.Plugin.PDFViewer/MoonPdfLib
/GitVersion.cs
/QuickLook.Installer/C_QuickLookComponents.wxs
/Build/
/Build/*
!/Build/Assets
!/Build/AppxManifest.*
!/Build/assetslayout.resfiles
!/Build/priconfig.xml

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "QuickLook.Common"]
path = QuickLook.Common
url = https://github.com/QL-Win/QuickLook.Common.git

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10">
<Identity Name="21090PaddyXu.QuickLook" Version="0.0.0.0"
Publisher='E=xupaddy@gmail.com, CN="Open Source Developer, Pengfei Xu", O=Open Source Developer, C=FI' />
<Properties>
<DisplayName>QuickLook</DisplayName>
<PublisherDisplayName>Paddy Xu</PublisherDisplayName>
<Description>Bring macOS &#8220;Quick Look&#8221; feature to Windows</Description>
<Logo>Assets\storelogo.png</Logo>
</Properties>
<Resources>
<Resource Language="en-us" />
<Resource uap:Scale="100" />
<Resource uap:Scale="125" />
<Resource uap:Scale="150" />
<Resource uap:Scale="200" />
<Resource uap:Scale="400" />
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14316.0" MaxVersionTested="10.0.15063.0" />
</Dependencies>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
<Applications>
<Application Id="Main" Executable="Package\QuickLook.exe" EntryPoint="Windows.FullTrustApplication">
<Extensions>
<desktop:Extension Category="windows.startupTask" Executable="Package\QuickLook.exe"
EntryPoint="Windows.FullTrustApplication">
<desktop:StartupTask TaskId="QuickLookTask" Enabled="true" DisplayName="QuickLook" />
</desktop:Extension>
</Extensions>
<uap:VisualElements DisplayName="QuickLook"
Description="Bring macOS &#8220;Quick Look&#8221; feature to Windows"
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"
Square310x310Logo="Assets\LargeTile.png"
Square71x71Logo="Assets\SmallTile.png">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square150x150Logo" />
<uap:ShowOn Tile="wide310x150Logo" />
<uap:ShowOn Tile="square310x310Logo" />
</uap:ShowNameOnTiles>
</uap:DefaultTile>
</uap:VisualElements>
</Application>
</Applications>
</Package>

52
Build/AppxManifest.xml Normal file
View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10">
<Identity Name="21090PaddyXu.QuickLook" Version="0.0.0.0" Publisher="CN=CE36AF3D-FF94-43EB-9908-7EC8FD1D29FB" />
<Properties>
<DisplayName>QuickLook</DisplayName>
<PublisherDisplayName>Paddy Xu</PublisherDisplayName>
<Description>Bring macOS &#8220;Quick Look&#8221; feature to Windows</Description>
<Logo>Assets\storelogo.png</Logo>
</Properties>
<Resources>
<Resource Language="en-us" />
<Resource uap:Scale="100" />
<Resource uap:Scale="125" />
<Resource uap:Scale="150" />
<Resource uap:Scale="200" />
<Resource uap:Scale="400" />
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14316.0" MaxVersionTested="10.0.15063.0" />
</Dependencies>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
<Applications>
<Application Id="Main" Executable="Package\QuickLook.exe" EntryPoint="Windows.FullTrustApplication">
<Extensions>
<desktop:Extension Category="windows.startupTask" Executable="Package\QuickLook.exe"
EntryPoint="Windows.FullTrustApplication">
<desktop:StartupTask TaskId="QuickLookTask" Enabled="true" DisplayName="QuickLook" />
</desktop:Extension>
</Extensions>
<uap:VisualElements DisplayName="QuickLook"
Description="Bring macOS &#8220;Quick Look&#8221; feature to Windows"
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"
Square310x310Logo="Assets\LargeTile.png"
Square71x71Logo="Assets\SmallTile.png">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square150x150Logo" />
<uap:ShowOn Tile="wide310x150Logo" />
<uap:ShowOn Tile="square310x310Logo" />
</uap:ShowNameOnTiles>
</uap:DefaultTile>
</uap:VisualElements>
</Application>
</Applications>
</Package>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -0,0 +1,40 @@
Assets\LargeTile.scale-100.png
Assets\LargeTile.scale-125.png
Assets\LargeTile.scale-150.png
Assets\LargeTile.scale-200.png
Assets\LargeTile.scale-400.png
Assets\SmallTile.scale-100.png
Assets\SmallTile.scale-125.png
Assets\SmallTile.scale-150.png
Assets\SmallTile.scale-200.png
Assets\SmallTile.scale-400.png
Assets\Square150x150Logo.scale-100.png
Assets\Square150x150Logo.scale-125.png
Assets\Square150x150Logo.scale-150.png
Assets\Square150x150Logo.scale-200.png
Assets\Square150x150Logo.scale-400.png
Assets\Square44x44Logo.altform-unplated_targetsize-16.png
Assets\Square44x44Logo.altform-unplated_targetsize-24.png
Assets\Square44x44Logo.altform-unplated_targetsize-32.png
Assets\Square44x44Logo.altform-unplated_targetsize-48.png
Assets\Square44x44Logo.altform-unplated_targetsize-256.png
Assets\Square44x44Logo.scale-100.png
Assets\Square44x44Logo.scale-125.png
Assets\Square44x44Logo.scale-150.png
Assets\Square44x44Logo.scale-200.png
Assets\Square44x44Logo.scale-400.png
Assets\Square44x44Logo.targetsize-16.png
Assets\Square44x44Logo.targetsize-24.png
Assets\Square44x44Logo.targetsize-32.png
Assets\Square44x44Logo.targetsize-48.png
Assets\Square44x44Logo.targetsize-256.png
Assets\storelogo.scale-100.png
Assets\storelogo.scale-125.png
Assets\storelogo.scale-150.png
Assets\storelogo.scale-200.png
Assets\storelogo.scale-400.png
Assets\Wide310x150Logo.scale-100.png
Assets\Wide310x150Logo.scale-125.png
Assets\Wide310x150Logo.scale-150.png
Assets\Wide310x150Logo.scale-200.png
Assets\Wide310x150Logo.scale-400.png

18
Build/priconfig.xml Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources targetOsVersion="10.0.0" majorVersion="1">
<index root="\" startIndexAt="..\assetslayout.resfiles">
<default>
<qualifier name="Language" value="en-US" />
<qualifier name="Contrast" value="standard" />
<qualifier name="Scale" value="100" />
<qualifier name="HomeRegion" value="001" />
<qualifier name="TargetSize" value="256" />
<qualifier name="LayoutDirection" value="LTR" />
<qualifier name="Configuration" value="" />
<qualifier name="AlternateForm" value="" />
<qualifier name="DXFeatureLevel" value="DX9" />
<qualifier name="Platform" value="UAP" />
</default>
<indexer-config type="RESFILES" qualifierDelimiter="." />
</index>
</resources>

1
QuickLook.Common Submodule

Submodule QuickLook.Common added at ef280ae2a5

View File

@@ -31,7 +31,7 @@
<RemoveFolder Id="ProgramMenuFolder" On="uninstall" />
<RegistryValue
Root="HKCU"
Key="Software/QuickLook"
Key="Software\QuickLook"
Name="installed"
Type="integer"
Value="1"
@@ -48,7 +48,7 @@
<RemoveFolder Id="DesktopFolder" On="uninstall" />
<RegistryValue
Root="HKCU"
Key="Software/QuickLook"
Key="Software\QuickLook"
Name="installed"
Type="integer"
Value="1"

View File

@@ -8,16 +8,14 @@
<SchemaVersion>2.0</SchemaVersion>
<OutputName>QuickLook</OutputName>
<OutputType>Package</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>..\Build\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug</DefineConstants>
<SuppressPdbOutput>True</SuppressPdbOutput>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>..\Build\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>PackageDir=$(SolutionDir)Build\Package\</DefineConstants>
</PropertyGroup>
<ItemGroup>
@@ -39,20 +37,16 @@
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
</Target>
<PropertyGroup>
<PreBuildEvent>rmdir /S /Q "$(SolutionDir)Build\Package\%2a"
<PostBuildEvent>powershell -file "$(SolutionDir)Scripts\rename-msi.ps1"
powershell -file "$(SolutionDir)Scripts\pack-zip.ps1"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>rmdir /S /Q "$(SolutionDir)Build\Package"
robocopy "$(SolutionDir)Build\$(Configuration)" "$(SolutionDir)Build\Package" %2a.%2a /e /njh /njs /ndl /nfl /nc /ns /np /xf %2a.pdb /xf %2a.obj /xf %2a.ipdb /xf %2a.iobj /xf %2a.exp /xf %2a.lib /xf %2a.ilk /xf %2a.xml
powershell -file "$(SolutionDir)Scripts\sign-package.ps1"
"$(WIX)bin\heat" dir "$(SolutionDir)Build\Package" -dr INSTALLFOLDER -cg QuickLookComponents -gg -g1 -sf -srd -sreg -var "var.PackageDir" -out "$(ProjectDir)C_QuickLookComponents.wxs"</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>powershell -file "$(SolutionDir)Scripts\sign-msi.ps1"
powershell -file "$(SolutionDir)Scripts\rename-msi.ps1"
powershell -file "$(SolutionDir)Scripts\pack-zip.ps1"</PostBuildEvent>
</PropertyGroup>
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -62,10 +62,11 @@ void DOpus::GetSelected(PWCHAR buffer)
PWCHAR data = DOPUS_IPC_LP_DATA;
COPYDATASTRUCT cds;
cds.dwData = DOPUS_IPC_LP_INFO;
cds.cbData = (wcslen(data) + 1) * sizeof WCHAR;
cds.cbData = static_cast<DWORD>(wcslen(data) + 1) * sizeof WCHAR;
cds.lpData = data;
auto ret = SendMessage(FindWindow(DOPUS_CLASS, DOPUS_NAME), WM_COPYDATA, (WPARAM)hMsgWnd, (LPARAM)&cds);
auto ret = SendMessage(FindWindow(DOPUS_CLASS, DOPUS_NAME), WM_COPYDATA, reinterpret_cast<WPARAM>(hMsgWnd),
reinterpret_cast<LPARAM>(&cds));
if (!ret)
return;
@@ -111,7 +112,7 @@ void DOpus::ParseXmlBuffer(PWCHAR buffer)
void DOpus::PrepareMessageWindow()
{
WNDCLASSEX wx = {'\0'};
WNDCLASSEX wx = {sizeof wx};
wx.cbSize = sizeof(WNDCLASSEX);
wx.lpfnWndProc = msgWindowProc;
wx.lpszClassName = MSGWINDOW_CLASS;

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -99,7 +99,8 @@ void DialogHook::GetSelectedFromWoW64HookHelper(PWCHAR buffer)
if (hHelperWnd == nullptr)
return;
auto hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0, MAX_PATH * sizeof WCHAR, SHARED_MEM_NAME);
auto hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0, MAX_PATH * sizeof WCHAR,
SHARED_MEM_NAME);
if (hMapFile == nullptr)
return;

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -42,7 +42,7 @@ void HelperMethods::GetSelectedInternal(CComQIPtr<IWebBrowserApp> pwba, PWCHAR b
void HelperMethods::ObtainFirstItem(CComPtr<IDataObject> dao, PWCHAR buffer)
{
FORMATETC formatetc;
STGMEDIUM medium;
STGMEDIUM medium = {sizeof medium};
formatetc.cfFormat = CF_HDROP;
formatetc.ptd = nullptr;
@@ -63,18 +63,44 @@ void HelperMethods::ObtainFirstItem(CComPtr<IDataObject> dao, PWCHAR buffer)
DragQueryFile(HDROP(medium.hGlobal), 0, buffer, MAX_PATH - 1);
}
bool HelperMethods::IsListaryToolbarVisible()
{
auto CALLBACK findListaryWindowProc = [](__in HWND hwnd, __in LPARAM lParam)-> BOOL
{
WCHAR classBuffer[MAX_PATH] = {'\0'};
if (FAILED(GetClassName(hwnd, classBuffer, MAX_PATH)))
return TRUE;
if (wcsncmp(classBuffer, L"Listary_WidgetWin_", 18) == 0)
{
if (IsWindowVisible(hwnd))
{
*reinterpret_cast<bool*>(lParam) = true;
return FALSE;
}
}
return TRUE;
};
auto found = false;
EnumWindows(findListaryWindowProc, reinterpret_cast<LPARAM>(&found));
return found;
}
bool HelperMethods::IsCursorActivated(HWND hwnd)
{
auto tId = GetWindowThreadProcessId(hwnd, nullptr);
GUITHREADINFO gui = {sizeof gui};
GetGUIThreadInfo(tId, &gui);
return gui.flags || gui.hwndCaret;
return gui.flags || gui.hwndCaret || IsListaryToolbarVisible();
}
bool HelperMethods::IsUWP()
{
auto pGCPFN = decltype(&GetCurrentPackageFullName)(GetProcAddress(GetModuleHandle(L"kernel32.dll"), "GetCurrentPackageFullName"));
auto pGCPFN = decltype(&GetCurrentPackageFullName)(
GetProcAddress(GetModuleHandle(L"kernel32.dll"), "GetCurrentPackageFullName"));
if (!pGCPFN)
return false;

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -23,4 +23,7 @@ public:
static void ObtainFirstItem(CComPtr<IDataObject> dao, PWCHAR buffer);
static bool IsCursorActivated(HWND hwndfg);
static bool HelperMethods::IsUWP();
private:
static bool IsListaryToolbarVisible();
};

View File

@@ -15,20 +15,20 @@
<ProjectGuid>{D31EE321-C2B0-4984-B749-736F7DE509F1}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>QuickLookNative32</RootNamespace>
<WindowsTargetPlatformVersion>10.0.15063.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>QuickLook.Native32</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -40,7 +40,7 @@ Shell32::FocusedWindowType Shell32::GetFocusedWindowType()
{
return DOPUS;
}
if (wcscmp(classBuffer, L"EVERYTHING") == 0)
if (wcscmp(classBuffer, L"EVERYTHING") == 0 || wcscmp(classBuffer, L"EVERYTHING_SHELL_EXECUTE") == 0)
{
return EVERYTHING;
}
@@ -106,12 +106,12 @@ void Shell32::getSelectedFromExplorer(PWCHAR buffer)
for (auto i = 0; i < count; i++)
{
VARIANT vi;
VariantInit(&vi);
V_VT(&vi) = VT_I4;
V_I4(&vi) = i;
CComPtr<IDispatch> pdisp;
// ReSharper disable once CppSomeObjectMembersMightNotBeInitialized
if (FAILED(psw->Item(vi, &pdisp)))
if (S_OK != psw->Item(vi, &pdisp))
continue;
CComQIPtr<IWebBrowserApp> pwba;
@@ -139,9 +139,11 @@ void Shell32::getSelectedFromDesktop(PWCHAR buffer)
if (FAILED(psw.CoCreateInstance(CLSID_ShellWindows)))
return;
VARIANT pvarLoc = {VT_EMPTY};
VARIANT pvarLoc;
VariantInit(&pvarLoc);
long phwnd;
if (FAILED(psw->FindWindowSW(&pvarLoc, &pvarLoc, SWC_DESKTOP, &phwnd, SWFO_NEEDDISPATCH, reinterpret_cast<IDispatch**>(&pwba))))
if (FAILED(psw->FindWindowSW(&pvarLoc, &pvarLoc, SWC_DESKTOP, &phwnd, SWFO_NEEDDISPATCH, reinterpret_cast<IDispatch**>(
&pwba))))
return;
if (HelperMethods::IsCursorActivated(reinterpret_cast<HWND>(LongToHandle(phwnd))))

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -51,7 +51,7 @@ bool WoW64HookHelper::Launch()
auto p = wcsrchr(fullPath, L'\\');
memcpy(p, HELPER_FILE, wcslen(HELPER_FILE) * sizeof WCHAR);
STARTUPINFO si = {'\0'};
STARTUPINFO si = {sizeof si};
PROCESS_INFORMATION pi = {nullptr};
si.cb = sizeof si;
@@ -70,10 +70,11 @@ void WoW64HookHelper::createJob()
hJob = CreateJobObject(nullptr, nullptr);
JOBOBJECT_BASIC_LIMIT_INFORMATION BasicLimitInformation = {'\0'};
JOBOBJECT_BASIC_LIMIT_INFORMATION BasicLimitInformation = {sizeof BasicLimitInformation};
BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE;
JOBOBJECT_EXTENDED_LIMIT_INFORMATION lpJobObjectInfo = {'\0'};
JOBOBJECT_EXTENDED_LIMIT_INFORMATION lpJobObjectInfo = {sizeof lpJobObjectInfo};
lpJobObjectInfo.BasicLimitInformation = BasicLimitInformation;
SetInformationJobObject(hJob, JobObjectExtendedLimitInformation, &lpJobObjectInfo, sizeof JOBOBJECT_EXTENDED_LIMIT_INFORMATION);
SetInformationJobObject(hJob, JobObjectExtendedLimitInformation, &lpJobObjectInfo,
sizeof JOBOBJECT_EXTENDED_LIMIT_INFORMATION);
}

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -35,20 +35,20 @@
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{794E4DCF-F715-4836-9D30-ABD296586D23}</ProjectGuid>
<RootNamespace>QuickLookNative64</RootNamespace>
<WindowsTargetPlatformVersion>10.0.15063.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>QuickLook.Native64</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -34,9 +34,9 @@ HWND hMsgWindow = nullptr;
UINT WM_HOOK_NOTIFY = 0;
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
// do not run when double-clicking
if (wcsstr(GetCommandLine(), RUN_ARG) == nullptr)

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -15,20 +15,20 @@
<ProjectGuid>{2C58F9B2-D8FA-4586-942B-5170CECE5963}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>QuickLookWoW64HookHelper</RootNamespace>
<WindowsTargetPlatformVersion>10.0.15063.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>QuickLook.WoW64HookHelper</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//

View File

@@ -90,7 +90,7 @@
<TreeView BorderThickness="0" Focusable="False" Background="Transparent"
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<TreeViewItem Focusable="False">
<TreeViewItem Focusable="False" Visibility="Collapsed">
<TreeViewItem.Header>
<Grid ShowGridLines="False">
<Grid.ColumnDefinitions>
@@ -130,13 +130,13 @@
<TreeView Grid.Row="1"
x:Name="treeView"
BorderThickness="0" Background="Transparent"
BorderThickness="0" Background="Transparent" Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=local:ArchiveFileListView}}"
ItemsSource="{Binding}">
<!--<TreeView.ItemContainerStyle>
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding Level, Converter={StaticResource LevelToBooleanConverter}}" />
<Setter Property="Foreground" Value="{Binding Foreground, RelativeSource={RelativeSource AncestorType=TreeView}}" />
</Style>
</TreeView.ItemContainerStyle>-->
</TreeView.ItemContainerStyle>
</TreeView>
</Grid>
</UserControl>

View File

@@ -37,16 +37,11 @@ namespace QuickLook.Plugin.ArchiveViewer
IconManager.ClearCache();
}
~ArchiveFileListView()
{
Dispose();
}
public void SetDataContext(object context)
{
treeGrid.DataContext = context;
treeView.Loaded += (sender, e) =>
treeView.LayoutUpdated += (sender, e) =>
{
// return when empty
if (treeView.Items.Count == 0)

View File

@@ -7,21 +7,42 @@
mc:Ignorable="d"
x:Name="infoPanel"
d:DesignHeight="600" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!-- only for design -->
<ResourceDictionary Source="/QuickLook.Common;component/Styles/MainWindowStyles.xaml" />
</ResourceDictionary.MergedDictionaries>
<local:Percent100ToVisibilityVisibleConverter x:Key="Percent100ToVisibilityVisibleConverter" />
<local:Percent100ToVisibilityCollapsedConverter x:Key="Percent100ToVisibilityCollapsedConverter" />
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<local:ArchiveFileListView Grid.Row="0" x:Name="fileListView" Focusable="False" />
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40*" />
<ColumnDefinition Width="30*" />
<ColumnDefinition Width="30*" />
</Grid.ColumnDefinitions>
<Label x:Name="archiveCount" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center">9 folders and 10 files, solid, password-protected</Label>
<Label x:Name="archiveSizeC" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">Compressed size 9999 bytes</Label>
<Label x:Name="archiveSizeU" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">Uncompressed size 99999 bytes</Label>
<Grid ZIndex="9999"
Visibility="{Binding ElementName=infoPanel, Path=LoadPercent, Mode=OneWay, Converter={StaticResource Percent100ToVisibilityCollapsedConverter}}">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<Label x:Name="lblLoading" FontSize="14" HorizontalAlignment="Center" Foreground="{DynamicResource WindowTextForeground}">Loading archive ...</Label>
<ProgressBar Height="13" Width="150"
Value="{Binding ElementName=infoPanel, Path=LoadPercent, Mode=OneWay}" />
</StackPanel>
</Grid>
<Grid
Visibility="{Binding ElementName=infoPanel, Path=LoadPercent, Mode=OneWay, Converter={StaticResource Percent100ToVisibilityVisibleConverter}}">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<local:ArchiveFileListView Grid.Row="0" x:Name="fileListView" Focusable="False" Foreground="{DynamicResource WindowTextForeground}" />
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40*" />
<ColumnDefinition Width="30*" />
<ColumnDefinition Width="30*" />
</Grid.ColumnDefinitions>
<Label x:Name="archiveCount" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource WindowTextForegroundAlternative}">0 folders and 0 files, solid, password-protected</Label>
<Label x:Name="archiveSizeC" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource WindowTextForegroundAlternative}">Compressed size 0 bytes</Label>
<Label x:Name="archiveSizeU" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource WindowTextForegroundAlternative}">Uncompressed size 0 bytes</Label>
</Grid>
</Grid>
</Grid>
</UserControl>

View File

@@ -17,9 +17,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System.Windows.Controls;
using QuickLook.Common.Annotations;
using QuickLook.Common.ExtensionMethods;
using QuickLook.Common.Helpers;
using SharpCompress.Archives;
using SharpCompress.Common;
using SharpCompress.Readers;
@@ -29,9 +35,11 @@ namespace QuickLook.Plugin.ArchiveViewer
/// <summary>
/// Interaction logic for ArchiveInfoPanel.xaml
/// </summary>
public partial class ArchiveInfoPanel : UserControl, IDisposable
public partial class ArchiveInfoPanel : UserControl, IDisposable, INotifyPropertyChanged
{
private readonly Dictionary<string, ArchiveFileEntry> _fileEntries = new Dictionary<string, ArchiveFileEntry>();
private bool _disposed;
private double _loadPercent;
private ulong _totalZippedSize;
private string _type;
@@ -39,57 +47,92 @@ namespace QuickLook.Plugin.ArchiveViewer
{
InitializeComponent();
LoadArchive(path);
// design-time only
Resources.MergedDictionaries.Clear();
fileListView.SetDataContext(_fileEntries[""].Children.Keys);
BeginLoadArchive(path);
}
public double LoadPercent
{
get => _loadPercent;
private set
{
if (value == _loadPercent) return;
_loadPercent = value;
OnPropertyChanged();
}
}
public void Dispose()
{
GC.SuppressFinalize(this);
_fileEntries.Clear();
_disposed = true;
fileListView.Dispose();
}
~ArchiveInfoPanel()
public event PropertyChangedEventHandler PropertyChanged;
private void BeginLoadArchive(string path)
{
Dispose();
}
private void LoadArchive(string path)
{
_totalZippedSize = (ulong) new FileInfo(path).Length;
LoadItemsFromArchive(path);
var folders = -1; // do not count root node
var files = 0;
ulong sizeU = 0L;
_fileEntries.ForEach(e =>
new Task(() =>
{
if (e.Value.IsFolder)
folders++;
_totalZippedSize = (ulong) new FileInfo(path).Length;
var root = new ArchiveFileEntry(Path.GetFileName(path), true);
_fileEntries.Add("", root);
try
{
LoadItemsFromArchive(path);
}
catch (Exception e)
{
ProcessHelper.WriteLog(e.ToString());
Dispatcher.Invoke(() => { lblLoading.Content = "Preview failed. See log for more details."; });
return;
}
var folders = -1; // do not count root node
var files = 0;
ulong sizeU = 0L;
_fileEntries.ForEach(e =>
{
if (e.Value.IsFolder)
folders++;
else
files++;
sizeU += e.Value.Size;
});
string t;
var d = folders != 0 ? $"{folders} folders" : string.Empty;
var f = files != 0 ? $"{files} files" : string.Empty;
if (!string.IsNullOrEmpty(d) && !string.IsNullOrEmpty(f))
t = $", {d} and {f}";
else if (string.IsNullOrEmpty(d) && string.IsNullOrEmpty(f))
t = string.Empty;
else
files++;
t = $", {d}{f}";
sizeU += e.Value.Size;
});
Dispatcher.Invoke(() =>
{
if (_disposed)
return;
string t;
var d = folders != 0 ? $"{folders} folders" : string.Empty;
var f = files != 0 ? $"{files} files" : string.Empty;
if (!string.IsNullOrEmpty(d) && !string.IsNullOrEmpty(f))
t = $", {d} and {f}";
else if (string.IsNullOrEmpty(d) && string.IsNullOrEmpty(f))
t = string.Empty;
else
t = $", {d}{f}";
fileListView.SetDataContext(_fileEntries[""].Children.Keys);
archiveCount.Content =
$"{_type} archive{t}";
archiveSizeC.Content =
$"Compressed size {((long) _totalZippedSize).ToPrettySize(2)}";
archiveSizeU.Content = $"Uncompressed size {((long) sizeU).ToPrettySize(2)}";
});
archiveCount.Content =
$"{_type} archive{t}";
archiveSizeC.Content = $"Compressed size {_totalZippedSize.ToPrettySize(2)}";
archiveSizeU.Content = $"Uncompressed size {sizeU.ToPrettySize(2)}";
LoadPercent = 100d;
}).Start();
}
private void LoadItemsFromArchive(string path)
@@ -99,29 +142,33 @@ namespace QuickLook.Plugin.ArchiveViewer
// ReaderFactory is slow... so limit its usage
string[] useReader = {".tar.gz", ".tgz", ".tar.bz2", ".tar.lz", ".tar.xz"};
if (useReader.Any(i => path.EndsWith(i)))
if (useReader.Any(path.ToLower().EndsWith))
{
var reader = ReaderFactory.Open(stream);
var reader = ReaderFactory.Open(stream, new ChardetReaderOptions());
_type = reader.ArchiveType.ToString();
var root = new ArchiveFileEntry(Path.GetFileName(path), true);
_fileEntries.Add("", root);
while (reader.MoveToNextEntry())
{
if (_disposed)
return;
LoadPercent = 100d * stream.Position / stream.Length;
ProcessByLevel(reader.Entry);
}
}
else
{
var archive = ArchiveFactory.Open(stream);
var archive = ArchiveFactory.Open(stream, new ChardetReaderOptions());
_type = archive.Type.ToString();
var root = new ArchiveFileEntry(Path.GetFileName(path), true);
_fileEntries.Add("", root);
foreach (var entry in archive.Entries)
{
if (_disposed)
return;
LoadPercent = 100d * stream.Position / stream.Length;
ProcessByLevel(entry);
}
}
}
}
@@ -138,8 +185,7 @@ namespace QuickLook.Plugin.ArchiveViewer
if (_fileEntries.ContainsKey(f))
return;
ArchiveFileEntry parent;
_fileEntries.TryGetValue(GetDirectoryName(f), out parent);
_fileEntries.TryGetValue(GetDirectoryName(f), out var parent);
var afe = new ArchiveFileEntry(Path.GetFileName(f), true, parent);
@@ -151,8 +197,7 @@ namespace QuickLook.Plugin.ArchiveViewer
{
var file = pf.Last();
ArchiveFileEntry parent;
_fileEntries.TryGetValue(GetDirectoryName(file), out parent);
_fileEntries.TryGetValue(GetDirectoryName(file), out var parent);
_fileEntries.Add(file, new ArchiveFileEntry(Path.GetFileName(entry.Key), false, parent)
{
@@ -179,5 +224,11 @@ namespace QuickLook.Plugin.ArchiveViewer
return frags.Select((s, i) => frags.Take(i + 1).Aggregate((a, b) => a + "\\" + b)).ToArray();
}
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}

View File

@@ -16,22 +16,32 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using System.Text;
using SharpCompress.Common;
using SharpCompress.Readers;
using UtfUnknown;
namespace QuickLook.Helpers.BlurLibrary.PlatformsImpl
namespace QuickLook.Plugin.ArchiveViewer
{
public class OsNotSupportedWindowBlurController : IWindowBlurController
internal class ChardetReaderOptions : ReaderOptions
{
public void EnableBlur(IntPtr hwnd)
public ChardetReaderOptions()
{
throw new NotSupportedException();
ArchiveEncoding = new ArchiveEncoding
{
CustomDecoder = Chardet
};
}
public void DisableBlur(IntPtr hwnd)
public string Chardet(byte[] bytes, int index, int count)
{
throw new NotSupportedException();
}
var buffer = new byte[count];
public bool Enabled { get; } = false;
public bool CanBeEnabled { get; } = false;
Array.Copy(bytes, index, buffer, 0, count);
var encoding = CharsetDetector.DetectFromBytes(buffer).Detected?.Encoding ?? Encoding.Default;
return encoding.GetString(buffer);
}
}
}

View File

@@ -19,9 +19,44 @@ using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using QuickLook.Common.ExtensionMethods;
namespace QuickLook.Plugin.ArchiveViewer
{
public class Percent100ToVisibilityVisibleConverter : DependencyObject, IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
value = 0;
var percent = (double) value;
return Math.Abs(percent - 100) < 0.00001 ? Visibility.Visible : Visibility.Collapsed;
}
public object ConvertBack(object value, Type targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
public class Percent100ToVisibilityCollapsedConverter : DependencyObject, IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
value = 0;
var percent = (double) value;
return Math.Abs(percent - 100) < 0.00001 ? Visibility.Collapsed : Visibility.Visible;
}
public object ConvertBack(object value, Type targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
public class LevelToIndentConverter : DependencyObject, IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
@@ -77,7 +112,7 @@ namespace QuickLook.Plugin.ArchiveViewer
var size = (ulong) values[0];
var isFolder = (bool) values[1];
return isFolder ? "" : size.ToPrettySize(2);
return isFolder ? "" : ((long) size).ToPrettySize(2);
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)

View File

@@ -47,31 +47,8 @@ namespace QuickLook.Plugin.ArchiveViewer
if (foundElement != null)
break;
}
return foundElement;
}
public static string ToPrettySize(this ulong value, int decimalPlaces = 0)
{
const long OneKb = 1024;
const long OneMb = OneKb * 1024;
const long OneGb = OneMb * 1024;
const long OneTb = OneGb * 1024;
var asTb = Math.Round((double) value / OneTb, decimalPlaces);
var asGb = Math.Round((double) value / OneGb, decimalPlaces);
var asMb = Math.Round((double) value / OneMb, decimalPlaces);
var asKb = Math.Round((double) value / OneKb, decimalPlaces);
var chosenValue = asTb > 1
? $"{asTb} TB"
: asGb > 1
? $"{asGb} GB"
: asMb > 1
? $"{asMb} MB"
: asKb > 1
? $"{asKb} KB"
: $"{Math.Round((double) value, decimalPlaces)} bytes";
return chosenValue;
}
}
}

View File

@@ -211,8 +211,10 @@ namespace QuickLook.Plugin.ArchiveViewer
public readonly IntPtr hIcon;
private readonly int iIcon;
private readonly uint dwAttributes;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = MaxPath)] private readonly string szDisplayName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = Namesize)] private readonly string szTypeName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = MaxPath)]
private readonly string szDisplayName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = Namesize)]
private readonly string szTypeName;
}
}

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -17,16 +17,20 @@
using System;
using System.IO;
using System.Linq;
using System.Windows;
using QuickLook.Common.Plugin;
namespace QuickLook.Plugin.ArchiveViewer
{
public class Plugin : IViewer
{
private static readonly string[] Extensions =
{".rar", ".zip", ".tar", ".tgz", ".gz", ".bz2", ".lz", ".xz", ".7z"};
private ArchiveInfoPanel _panel;
public int Priority => 0;
public bool AllowsTransparency => true;
public int Priority => -5;
public void Init()
{
@@ -34,25 +38,7 @@ namespace QuickLook.Plugin.ArchiveViewer
public bool CanHandle(string path)
{
if (Directory.Exists(path))
return false;
switch (Path.GetExtension(path).ToLower())
{
case ".rar":
case ".zip":
case ".tar":
case ".tgz":
case ".gz":
case ".bz2":
case ".lz":
case ".xz":
case ".7z":
return true;
default:
return false;
}
return !Directory.Exists(path) && Extensions.Any(path.ToLower().EndsWith);
}
public void Prepare(string path, ContextObject context)
@@ -77,10 +63,5 @@ namespace QuickLook.Plugin.ArchiveViewer
_panel?.Dispose();
_panel = null;
}
~Plugin()
{
Cleanup();
}
}
}

View File

@@ -50,21 +50,25 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="SharpCompress, Version=0.17.1.0, Culture=neutral, PublicKeyToken=afb0a02973931d96, processorArchitecture=MSIL">
<HintPath>..\..\packages\SharpCompress.0.17.1\lib\net45\SharpCompress.dll</HintPath>
<Reference Include="SharpCompress, Version=0.23.0.0, Culture=neutral, PublicKeyToken=afb0a02973931d96, processorArchitecture=MSIL">
<HintPath>..\..\packages\SharpCompress.0.23.0\lib\net45\SharpCompress.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xaml" />
<Reference Include="UtfUnknown, Version=2.0.0.0, Culture=neutral, PublicKeyToken=90217ce7a23260d4, processorArchitecture=MSIL">
<HintPath>..\..\packages\UTF.Unknown.2.0.0-rc1\lib\net40\UtfUnknown.dll</HintPath>
</Reference>
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
@@ -75,6 +79,7 @@
<DependentUpon>ArchiveInfoPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ArchiveFileEntry.cs" />
<Compile Include="ChardetReaderOptions.cs" />
<Compile Include="IconManager.cs" />
<Compile Include="Extensions.cs" />
<Compile Include="Converters.cs" />
@@ -85,9 +90,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\QuickLook\QuickLook.csproj">
<Project>{8b4a9ce5-67b5-4a94-81cb-3771f688fdeb}</Project>
<Name>QuickLook</Name>
<ProjectReference Include="..\..\QuickLook.Common\QuickLook.Common.csproj">
<Project>{85FDD6BA-871D-46C8-BD64-F6BB0CB5EA95}</Project>
<Name>QuickLook.Common</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
@@ -102,7 +107,6 @@
</Page>
</ItemGroup>
<ItemGroup>
<None Include="key.snk" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="SharpCompress" version="0.17.1" targetFramework="net462" />
<package id="SharpCompress" version="0.23.0" targetFramework="net462" />
<package id="UTF.Unknown" version="2.0.0-rc1" targetFramework="net462" />
</packages>

View File

@@ -9,10 +9,9 @@
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<DataGrid x:Name="dataGrid" AlternationCount="2" BorderThickness="0" Background="Transparent"
RowBackground="Transparent" GridLinesVisibility="None"
IsReadOnly="True" HeadersVisibility="None"
AutoGenerateColumns="False" CanUserReorderColumns="False"
ItemsSource="{Binding Path=Rows,ElementName=csvViewer}" AlternatingRowBackground="#99ECECEC" />
RowBackground="Transparent" IsReadOnly="True" HeadersVisibility="None" AutoGenerateColumns="False"
CanUserReorderColumns="False" ItemsSource="{Binding Path=Rows,ElementName=csvViewer}"
AlternatingRowBackground="#99D8D8D8" HorizontalGridLinesBrush="#FFBDBDBD" VerticalGridLinesBrush="#FFBDBDBD" />
</Grid>
</UserControl>

View File

@@ -41,12 +41,14 @@ namespace QuickLook.Plugin.CsvViewer
public void LoadFile(string path)
{
const int limit = 100000;
const int limit = 10000;
var binded = false;
using (var sr = new StreamReader(path))
using (var sr = new StreamReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
{
using (var parser = new CsvParser(sr))
var conf = new CsvHelper.Configuration.Configuration() {MissingFieldFound = null, BadDataFound = null};
using (var parser = new CsvParser(sr, conf))
{
var i = 0;
while (true)

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -18,6 +18,7 @@
using System;
using System.IO;
using System.Windows;
using QuickLook.Common.Plugin;
namespace QuickLook.Plugin.CsvViewer
{
@@ -25,8 +26,7 @@ namespace QuickLook.Plugin.CsvViewer
{
private CsvViewerPanel _panel;
public int Priority => int.MaxValue;
public bool AllowsTransparency => true;
public int Priority => 0;
public void Init()
{
@@ -34,10 +34,7 @@ namespace QuickLook.Plugin.CsvViewer
public bool CanHandle(string path)
{
if (Directory.Exists(path))
return false;
return Path.GetExtension(path).ToLower() == ".csv";
return !Directory.Exists(path) && path.ToLower().EndsWith(".csv");
}
public void Prepare(string path, ContextObject context)
@@ -62,10 +59,5 @@ namespace QuickLook.Plugin.CsvViewer
_panel = null;
}
~Plugin()
{
Cleanup();
}
}
}

View File

@@ -49,17 +49,22 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="CsvHelper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
<HintPath>..\..\packages\CsvHelper.2.16.3.0\lib\net45\CsvHelper.dll</HintPath>
<Reference Include="CsvHelper, Version=12.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
<HintPath>..\..\packages\CsvHelper.12.1.2\lib\net45\CsvHelper.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
@@ -83,14 +88,14 @@
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\QuickLook\QuickLook.csproj">
<Project>{8b4a9ce5-67b5-4a94-81cb-3771f688fdeb}</Project>
<Name>QuickLook</Name>
<ProjectReference Include="..\..\QuickLook.Common\QuickLook.Common.csproj">
<Project>{85FDD6BA-871D-46C8-BD64-F6BB0CB5EA95}</Project>
<Name>QuickLook.Common</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="key.snk" />
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CsvHelper" version="2.16.3.0" targetFramework="net462" />
<package id="CsvHelper" version="12.1.2" targetFramework="net462" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net462" />
</packages>

View File

@@ -1,63 +0,0 @@
// Copyright <20> 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace QuickLook.Plugin.HtmlViewer
{
internal static class DpiHelper
{
public enum DeviceCap
{
/// <summary>
/// Logical pixels inch in X
/// </summary>
LOGPIXELSX = 88,
/// <summary>
/// Logical pixels inch in Y
/// </summary>
LOGPIXELSY = 90
}
public const float DEFAULT_DPI = 96;
public static Dpi GetCurrentDpi()
{
var g = Graphics.FromHwnd(IntPtr.Zero);
var desktop = g.GetHdc();
var dpi = new Dpi
{
HorizontalDpi = GetDeviceCaps(desktop, (int) DeviceCap.LOGPIXELSX),
VerticalDpi = GetDeviceCaps(desktop, (int) DeviceCap.LOGPIXELSY)
};
return dpi;
}
[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true, ExactSpelling = true)]
public static extern int GetDeviceCaps(IntPtr hDC, int nIndex);
}
internal class Dpi
{
public float HorizontalDpi { get; set; }
public float VerticalDpi { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
// Copyright <EFBFBD> 2017 Paddy Xu
// Copyright © 2017 Paddy Xu
//
// This file is part of QuickLook program.
//
@@ -63,5 +63,25 @@ namespace QuickLook.Plugin.HtmlViewer
key?.SetValue(appName, value, RegistryValueKind.DWord);
}
}
internal static string GetUrlPath(string url)
{
int index = -1;
string[] lines = File.ReadAllLines(url);
foreach (string line in lines)
{
if (line.ToLower().Contains("url="))
{
index = System.Array.IndexOf(lines, line);
break;
}
}
if (index != -1)
{
var fullLine = lines.GetValue(index);
return fullLine.ToString().Substring(fullLine.ToString().LastIndexOf('=') + 1);
}
return url;
}
}
}

View File

@@ -17,17 +17,20 @@
using System;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Threading;
using QuickLook.Common.Plugin;
namespace QuickLook.Plugin.HtmlViewer
{
public class Plugin : IViewer
{
private static readonly string[] Extensions = { ".mht", ".mhtml", ".htm", ".html", ".svg", ".url" };
private WebpagePanel _panel;
public int Priority => int.MaxValue;
public bool AllowsTransparency => false;
public int Priority => 0;
public void Init()
{
@@ -36,25 +39,12 @@ namespace QuickLook.Plugin.HtmlViewer
public bool CanHandle(string path)
{
if (Directory.Exists(path))
return false;
switch (Path.GetExtension(path).ToLower())
{
case ".html":
case ".htm":
return true;
default:
return false;
}
return !Directory.Exists(path) && Extensions.Any(path.ToLower().EndsWith);
}
public void Prepare(string path, ContextObject context)
{
context.PreferredSize = new Size(1000, 600);
context.CanFocus = true;
context.PreferredSize = new Size(1280, 720);
}
public void View(string path, ContextObject context)
@@ -63,21 +53,18 @@ namespace QuickLook.Plugin.HtmlViewer
context.ViewerContent = _panel;
context.Title = Path.IsPathRooted(path) ? Path.GetFileName(path) : path;
_panel.Navigate(path);
if (path.ToLower().EndsWith(".url"))
{
path = Helper.GetUrlPath(path);
}
_panel.LoadFile(path);
_panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded);
}
public void Cleanup()
{
GC.SuppressFinalize(this);
_panel?.Dispose();
_panel = null;
}
~Plugin()
{
Cleanup();
}
}
}

Some files were not shown because too many files have changed in this diff Show More