65 Commits

Author SHA1 Message Date
a00eade3bb Force queue gtk page redraw
This hopefully solves the rendering issues
2025-01-10 22:23:51 +01:00
76512404e1 Update flake.lock 2025-01-10 22:23:39 +01:00
02c0f24cd4 Clean up flake source 2025-01-09 21:33:56 +01:00
881da90290 Update flake and cargo lock 2025-01-09 20:34:07 +01:00
d63eb2b9d1 restrict hydraJobs to systems x64-64-linux and aarch64-linux 2024-12-08 21:57:59 +01:00
b7a1a6c07e Add todo for performance improvement 2024-12-08 15:26:22 +01:00
9d8713f622 Prevent poppler page request for too large page numbers 2024-12-08 15:21:49 +01:00
636aa14be3 Add check if page from cache has correct page_number 2024-12-08 15:09:03 +01:00
59e1852f62 Add hydraJobs to flake 2024-12-06 17:28:56 +01:00
2f7e9853aa Add missing is_some check 2024-12-03 21:54:03 +01:00
02120b3263 Save selected color_mode using glib settings 2024-11-27 17:07:47 +01:00
a7ea7bd6d7 Save fullscreen state using glib settings 2024-11-27 16:40:21 +01:00
ac261f0761 Add fullscreen button 2024-11-27 15:53:54 +01:00
4053fa70f4 Add necessary packages to flakes devshell 2024-11-27 15:49:12 +01:00
b5239e14b6 Add color mode feature, rendering e.g. in dark mode 2024-11-27 15:48:58 +01:00
c8795588d8 Add desktop item and icon, format flake code 2024-11-24 21:23:06 +01:00
7110054836 Make window move itself to foreground when opened 2024-02-09 15:36:29 +01:00
f7b9036063 Apply cargo hint 2024-02-01 18:31:30 +01:00
c6c07e788b Improve caching order and priority cache on fullscreen 2024-02-01 18:29:49 +01:00
d9d3438997 Improve nix development shell 2024-01-14 12:20:25 +01:00
eef1f2caee Update nix flake 2024-01-14 12:20:18 +01:00
f6a47eb8b7 Fix page caching on fullscreen 2023-11-28 10:30:39 +01:00
72e19cd5a2 Show only single page on left when at last page
This way one can easily see when the last page is reached
2023-11-28 09:42:20 +01:00
79ddd2680b Run clippy fix 2023-11-28 08:27:56 +01:00
b2441ec2dc Prevent accidental double touching 2023-11-28 08:27:04 +01:00
77f32e55cf Recache pages on fullscreen activation 2023-11-27 20:59:46 +01:00
3f6fa16bdb Remove close button, replace with top-right touch area 2023-11-27 11:10:18 +01:00
3e373914c7 Add close button 2023-11-27 11:05:23 +01:00
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