37 Commits

Author SHA1 Message Date
1e6b9fc337 Cache initial pages directly with best resolution 2023-11-27 10:40:11 +01:00
78bc8b1e64 Increase cache size and pre-cache resolution
Improve performance by not caching pages which would have to be removed
from cache anyways
2023-11-23 12:46:19 +01:00
9240db298d Fix initial pages being not rendered in max res 2023-11-23 12:40:28 +01:00
1a7f7498cd Implement pre-caching with lower resolution 2023-11-23 12:23:20 +01:00
75e1da0097 Implement custom command channel (not async) 2023-11-23 11:54:08 +01:00
0a0fc61522 Increase touch area to whole app_wrapper 2023-11-23 10:21:24 +01:00
bb3e547660 Use env_logger and debug! instead of println! 2023-11-23 10:15:53 +01:00
e9b2263276 Apply cargo fix 2023-11-23 09:35:18 +01:00
5659707132 Make render-caching work!!! 2023-11-22 21:45:00 +01:00
b98ca6c9f6 Managed to render to png, still only proof of concept 2023-11-22 19:35:16 +01:00
1db3c212ba Clean up flake, remove pdfium dependency 2023-11-22 13:35:01 +01:00
c6d8eb4a59 Drawing code and performance improvements 2023-11-21 20:17:20 +01:00
21ea774a00 Taking time for drawing and caching 2023-11-21 19:16:54 +01:00
2c524625c1 Clean up draw function arguments 2023-11-21 19:03:30 +01:00
99e03d21a2 Remove unnecessary drawing context 2023-11-21 18:40:39 +01:00
2ff15bbce0 Fix clippy warnings 2023-11-21 18:30:34 +01:00
874120108b Remove commented code 2023-11-21 18:20:05 +01:00
a9729005ff Fix cargo warnings 2023-11-21 18:16:27 +01:00
4feecffb9b Move drawing to separate code file 2023-11-21 18:12:43 +01:00
cea989f194 Managed to make async pdf loading work
Major clean-up necessary!!!
2023-11-21 12:58:12 +01:00
d71a2dab66 Tried implementing real async loading, using libpdfium instead of libpoppler
pdfium does not find library yet.
Major clean up needed
2023-11-21 00:45:38 +01:00
ca4d5fc899 First try in implementing page caching
Could not find out how to cache in background, so all pages are cached
when the document is loaded
2023-11-08 19:39:37 +01:00
11627c8726 Make page turning two at once possible 2023-11-08 17:42:31 +01:00
bc0ce2f934 Implement fullscreen 2023-10-21 15:52:35 +02:00
ddb04f1e20 Speed up by loading pages from document only when necessary 2023-10-21 15:41:58 +02:00
65543ce205 Enable navigation with left- and rightclick 2023-10-21 15:16:23 +02:00
c3928880fb Implement two page drawing 2023-10-10 10:07:54 +02:00
f8c9cfe8f6 Implement clippy fixes 2023-10-10 08:18:21 +02:00
0c1260e6fc Move ui code to separate code file 2023-10-10 08:13:24 +02:00
97fabb674f Init all ui before loading file 2023-10-09 23:39:06 +02:00
91b588bf01 Refactor code by moving closures into functions 2023-10-09 21:37:30 +02:00
a5a3783029 Use newer dependency versions and different poppler library 2023-10-09 20:50:33 +02:00
8f7df7cdaa Start refactoring code 2023-10-09 20:13:30 +02:00
3cc632f8e1 Add Readme.md and LICENSE 2023-10-01 20:13:52 +02:00
49de8dd465 Parse cli arguments with clap 2023-09-29 18:49:33 +02:00
1f33d09ec1 Center pdf page in window 2023-09-29 17:57:03 +02:00
19b1ccfcbf First commit 2023-09-29 16:53:08 +02:00