Commit Graph

52427 Commits

Author SHA1 Message Date
Kovid Goyal 90509ec00e Fix aspect ratio of expanded cover when dpr != 1 2025-12-25 21:47:00 +05:30
Kovid Goyal daccfa1f72 ... 2025-12-25 19:56:59 +05:30
Kovid Goyal c692fb5ee0 Use an LRU cache for sized text
No need to repeatedly re-calculate a range of metrics on every
paintEvent
2025-12-25 19:53:00 +05:30
Kovid Goyal a0fc4de026 DRYer 2025-12-25 19:46:44 +05:30
Kovid Goyal f6cbcc49b6 Remove unused code
Sort By action calls the sort methods on library_view not alternate
views
2025-12-25 19:33:56 +05:30
Kovid Goyal 22968d5569 Remove unused code 2025-12-25 19:30:41 +05:30
Kovid Goyal b541b876e0 Remove unused code 2025-12-25 19:26:32 +05:30
Kovid Goyal 9b9327c48e ... 2025-12-25 19:23:36 +05:30
Kovid Goyal 64fd5795ae Remove unused code 2025-12-25 19:21:24 +05:30
Kovid Goyal 526212c65d Use a hash to randomize height/width values to avoid visual cycles when sorting by id/timestamp 2025-12-25 19:01:52 +05:30
Kovid Goyal 81f0462b8e Get drag and drop working in shelf view 2025-12-25 18:24:37 +05:30
Kovid Goyal 09eb891647 Fix loading of default cover image 2025-12-25 14:49:50 +05:30
Kovid Goyal 8a01647dba Shelf base should extend into side margin 2025-12-25 14:42:56 +05:30
Kovid Goyal 6a792ce394 DRYer 2025-12-25 14:40:48 +05:30
Kovid Goyal b7e7e982bf Move emblems above and below 2025-12-25 14:26:47 +05:30
Kovid Goyal 60dadb1102 Cleanup bookshelf preferences
The background color preferences are not applicable as we have a fixed
pair of light/dark textured backgrounds. The variable height preference
was being ignored, fix that.
2025-12-25 14:04:46 +05:30
Kovid Goyal 9c703ffaf7 Add side shadows to the book case background 2025-12-25 13:55:36 +05:30
Kovid Goyal 9f18a5e93c Draw a background for the book shelf view 2025-12-25 11:10:19 +05:30
Kovid Goyal 9f1ab04479 Keep the shelf randomization per instance 2025-12-25 10:53:45 +05:30
Kovid Goyal 8dfee0c514 Improve rendering of shelves
Add drain and knots and change colors for light/dark
2025-12-25 10:27:44 +05:30
Kovid Goyal 431738dfc6 Fix visual selection between invocation 2025-12-24 19:33:37 +05:30
Kovid Goyal a508def2ea Implement select all shortcut in shelf view 2025-12-24 17:36:41 +05:30
Kovid Goyal 15fdeabf60 Fix corner joining when drawing selection highlight 2025-12-24 17:32:33 +05:30
Kovid Goyal 8b716ce1b2 Implement marked and ondevice emblems for shelf view 2025-12-24 17:30:00 +05:30
Kovid Goyal 43464ab3ee ... 2025-12-24 16:41:55 +05:30
Kovid Goyal 666deb6857 Implement keyboard based navigation for bookshelf 2025-12-24 16:40:33 +05:30
Kovid Goyal f7f26f66e1 ... 2025-12-24 13:25:59 +05:30
Kovid Goyal d49b5ada6f Fix spine vertical gradient moving with scroll pos 2025-12-24 12:12:34 +05:30
Kovid Goyal bf446c26ac Implement mouse based selection in bookshelf view 2025-12-24 12:05:01 +05:30
Kovid Goyal ec736febe2 ... 2025-12-22 20:30:01 +05:30
Kovid Goyal 4b26278c56 change colors in bookshelf icon to match other icons 2025-12-22 20:19:30 +05:30
Kovid Goyal 8c3626331e Also fix dpr handling for expanded cover 2025-12-22 20:06:40 +05:30
Kovid Goyal f1efd5fee5 Use device pixel ration when generating thumbnails for high res rendering 2025-12-22 19:59:04 +05:30
Kovid Goyal e9e23e8075 Render shadow around hovered cover 2025-12-22 19:42:07 +05:30
Kovid Goyal ccf828d984 Implement cached rendering for expanded cover animation 2025-12-22 17:17:35 +05:30
Kovid Goyal 87c1404906 ... 2025-12-22 15:08:46 +05:30
Kovid Goyal 7dae299143 Use extra space at right edge unconditionally when shifting 2025-12-22 14:34:39 +05:30
Kovid Goyal b287fb671f Refactor hovered cover
This fixes transitions as mouse moves from one book to the next.
Implement shift off both edges except when hovering over books close to
either edge.

Still need to implement drop shadows

Can also possibly make shift preferentially use leftover space at right
edge.
2025-12-22 14:06:21 +05:30
Kovid Goyal 319dc8c8fa Update Ars Technica 2025-12-22 08:58:44 +05:30
Kovid Goyal cc2ab8bc0d Dont reserve space for transient scrollbars 2025-12-21 22:51:06 +05:30
Kovid Goyal 64126fd10a Refactor shelf layout code
Layout is now done in a separate thread, shelf by shelf. As each shelf
is layouted it is rendered if visible. Also fix various bugs in the old
layout code, such as not taking width of vertical scrollbar into
account.

Note that cover hover functionality is currently broken, it needs to be
refactored and changed to always shift books, to the left or the right
depending on which edge the hovered books is closer too. We might also
want to always expand the cover for the current book not just the
hovered book. Or maybe not, to be decided.
2025-12-21 21:22:33 +05:30
Kovid Goyal 8cc962c7d9 Dont run test_rs in windows CI 2025-12-21 14:30:59 +05:30
Kovid Goyal a88dbd4a63 Fix boolean searchingin Vietnamese not wroking for Yes as opposed to yes
For the good Lord alone knows what reason in Vietanamese
yes is translated as "đồng ý" and Yes as "Đúng"
2025-12-21 14:19:30 +05:30
Kovid Goyal baeb9a577d Cleanup unicode normalisation in boolean searches 2025-12-21 14:16:20 +05:30
Kovid Goyal 6776f6c05d Use the actual max number of variable supported by the sqlite connection 2025-12-19 15:38:30 +05:30
Kovid Goyal 12b4b50969 API to efficiently group books by year/month for builtin datetime fields 2025-12-19 12:36:24 +05:30
Kovid Goyal 2fb0f42571 Only report corrupted files in an import at the end 2025-12-19 08:49:20 +05:30
Kovid Goyal 44a0942331 Edit book: Add copy from preview to clipboard action (Ctrl+Alt+C) 2025-12-18 11:58:33 +05:30
Kovid Goyal 8962dc0aae macOS: Diff view: Fix scrollbar flickering continuously when transient scrollbars are enabled 2025-12-17 13:03:51 +05:30
Kovid Goyal e825d96553 Fix #2136450 [OpenRouter.AI integration doesn't work in 8.16.2](https://bugs.launchpad.net/calibre/+bug/2136450) 2025-12-17 09:49:45 +05:30