Commit Graph

39348 Commits

Author SHA1 Message Date
Kovid Goyal e2899e558a Allow configuring size of RAM cache used in shelf view 2025-12-15 15:08:20 +05:30
Kovid Goyal 6f91439871 Use constBits to avoid QImage copy 2025-12-15 11:09:25 +05:30
Kovid Goyal 4155f45f75 ... 2025-12-15 11:05:05 +05:30
Kovid Goyal 0ec156f864 Fix getting dominant color of null qimage 2025-12-15 11:04:13 +05:30
Kovid Goyal e55140e5bd ... 2025-12-15 10:59:00 +05:30
Kovid Goyal be83055dce Use a native implementation of dominant_color() for performance 2025-12-15 10:55:05 +05:30
Kovid Goyal a7c2d8b5cb Fix get books kobo plugin 2025-12-14 21:16:28 +05:30
Kovid Goyal 970a46fd23 update kobo get books plugin but it is still being blocked 2025-12-14 20:58:25 +05:30
Kovid Goyal 00fbfa6077 Cache dominant color as well when caching thumbnails
Additionally, re-use the cache code used by the cover grid. Also
draw the cover over the full spine rather than just a part of it.

Cache the most recently drawn covers in RAM.
2025-12-14 18:56:48 +05:30
Kovid Goyal ef2742f4bd Port cover grid preferences 2025-12-14 15:03:44 +05:30
Kovid Goyal d7c9553330 Remove cbz from list of formats to update metadata in since calibre doesnt support writing of metadata to cbz 2025-12-14 09:41:24 +05:30
Kovid Goyal 38793816b7 Fix #2135853 [[fr] plugboard format limits are antiquated](https://bugs.launchpad.net/calibre/+bug/2135853) 2025-12-14 09:19:51 +05:30
Kovid Goyal f5e5a1a1a9 string changes 2025-12-13 16:31:42 +05:30
Kovid Goyal 96429b06d2 Merge branch 'shelf' 2025-12-13 11:13:07 +05:30
Kovid Goyal 55669eb45f Do same thing for editor
I wasnt getting the segfaults there, but no harm in being defensive
2025-12-13 09:59:49 +05:30
Kovid Goyal ab44a0762c Fix occassional segfault on exit of viewer
Force destruction of main window and application object before
interpreter shutdown.
2025-12-13 09:57:25 +05:30
Kovid Goyal 33ba0468d6 Fix using readability on trees not parsed by lxml.html 2025-12-13 09:45:09 +05:30
Kovid Goyal d774faf29c Fix #2135263 [Adding *.tif image as cover causes segfault](https://bugs.launchpad.net/calibre/+bug/2135263) 2025-12-13 09:21:35 +05:30
Kovid Goyal 695162a2e9 Do not apply synthetic momentum for mouse wheel based scrolling by default
Many mice wheels have their own physical momentum
2025-12-12 23:14:47 +05:30
Kovid Goyal 959e7e6c58 friction should make sense 2025-12-12 22:54:34 +05:30
Kovid Goyal 7b29e64bb7 Cleanup momentum scrolling implementation 2025-12-12 22:48:53 +05:30
Kovid Goyal d77e0723ee Remove unneccessary function call 2025-12-12 21:50:16 +05:30
Kovid Goyal dac5f8a103 Increase momentum scrolling FPS
Fixes jerkiness at slower scroll speeds
2025-12-12 20:02:38 +05:30
Kovid Goyal 2824f9cb1c ... 2025-12-12 19:42:52 +05:30
Kovid Goyal cdc1b8e01f Remove unused code 2025-12-12 19:39:41 +05:30
Kovid Goyal 3a4e506cae Add a test for cover_timestamp() 2025-12-12 19:26:28 +05:30
Kovid Goyal 94041b955d Use the new refactored cover thumbail cache in the grid view 2025-12-12 19:18:16 +05:30
Kovid Goyal 70b6bc025d Merge branch 'fix-spine-witdth' of https://github.com/un-pogaz/calibre into shelf 2025-12-12 16:35:07 +05:30
un-pogaz 675013ee91 fix and tweak spine size template
template dosn't work
and tweak the log curve to be less abrupt
2025-12-12 09:59:34 +01:00
un-pogaz edfbf08ef9 ... 2025-12-12 09:52:12 +01:00
Kovid Goyal 49a8c1336e DRYer 2025-12-12 11:14:29 +05:30
Kovid Goyal 64ab9587cb Add tests for the combined cover cache 2025-12-12 10:24:32 +05:30
Kovid Goyal b082d329b7 Sigh. Winblows! 2025-12-11 23:58:17 +05:30
Kovid Goyal c292217c28 Remove use of atexit in db tests 2025-12-11 23:46:05 +05:30
Kovid Goyal b21cbc55fd Skipping testing audio outputs in qt multimedia on non CI Linux systems
It hangs on some systems, sigh.
2025-12-11 21:16:55 +05:30
Kovid Goyal f757790ecb Use external rapydscript compiler for msgfmt and gettext as well 2025-12-11 21:09:08 +05:30
Kovid Goyal 2700102f5d Skip only the webengine part 2025-12-11 20:52:16 +05:30
Kovid Goyal e0ba1cd9c3 Skip WebEngine tests in macos and windows CI 2025-12-11 20:31:23 +05:30
Kovid Goyal 561df1798e Merge branch 'refactor-template-spine' of https://github.com/un-pogaz/calibre into shelf 2025-12-11 19:22:38 +05:30
Kovid Goyal 804ae40320 Start work on making grid views thumbnail cache re-useable 2025-12-11 19:04:51 +05:30
Kovid Goyal f61f9e931e More generic error message for SKIP_QT_BUILD_TEST 2025-12-11 18:58:33 +05:30
un-pogaz f06cfd764f Refactor template for spine width
Template now use a decimal number between 0.0 and 1.0
{size} and pre-build-template use a logarithmic curve
to reduce the occurrence of narrower spine that are difficult to read.
2025-12-11 12:35:17 +01:00
Kovid Goyal 5cb7adfe61 ... 2025-12-11 14:53:17 +05:30
Kovid Goyal 1d369f70a5 Use empty string for no grouping rather than 'none' 2025-12-11 09:28:48 +05:30
Kovid Goyal 1b4df5d5dc Cleanup handling of _model attribute 2025-12-11 09:25:27 +05:30
Kovid Goyal 5669362033 Remove unused code 2025-12-11 08:51:24 +05:30
Kovid Goyal 7915aad2da Cleanup previous PR 2025-12-10 23:22:43 +05:30
Kovid Goyal c4a23f31aa Refactor setting for spine width
Use a single setting, cleaner with more flexibility for users to define
sizes. Also faster in the default case of no template and using size.
2025-12-10 23:12:51 +05:30
un-pogaz 01df854e29 add a tweak to hide ai features 2025-12-10 17:07:12 +01:00
Kovid Goyal ea0b374525 Finish up grouping refactor 2025-12-10 20:35:09 +05:30