52860 Commits

Author SHA1 Message Date
Kovid Goyal
cbb2bcb68f
Bump beta version 2026-01-22 11:19:28 +05:30
Kovid Goyal
20518cdf83
More usage of cached icons 2026-01-22 10:50:38 +05:30
Kovid Goyal
f2bed5f206
Use cached icons for emblems 2026-01-22 10:47:25 +05:30
Kovid Goyal
3abe64dd56
... 2026-01-21 23:33:45 +05:30
Kovid Goyal
983a8c67c9
add virtual hook to calibre icon engine 2026-01-21 23:26:01 +05:30
Kovid Goyal
aae36e0d28
... 2026-01-21 23:11:41 +05:30
Kovid Goyal
329a013ee0
Cleanup font selection dialog 2026-01-21 23:10:59 +05:30
Kovid Goyal
5e275651a6
Usual actual min/max font sizes in font selection dialog 2026-01-21 23:07:33 +05:30
Kovid Goyal
76ed86da6f
... 2026-01-21 22:59:23 +05:30
Kovid Goyal
cd24e5d9b9
Bookshelf: Allow specifying the font to use for spines 2026-01-21 22:55:35 +05:30
Kovid Goyal
781ed74dc9
Bookshelf: Change defaults to outline off and bold on
At least to my eyes, this is more legible. Bold is better than outline
since it doesnt increase line height in most faces, thereby requiring
less font size reduction.
2026-01-21 20:19:08 +05:30
Kovid Goyal
1595f3a026
Remove unused code 2026-01-21 19:45:48 +05:30
Kovid Goyal
2876ebf07e
Cache rendering of spine text
Rendering text with outline is dog slow, to the extent that it messes
with the momentum scroll animation
2026-01-21 19:39:19 +05:30
Kovid Goyal
1a0f6be544
Cache get_icons() to avoid reading icon data from zip file multiple times 2026-01-21 17:29:25 +05:30
Kovid Goyal
0e444b577a
Merge branch 'outline-colors' of https://github.com/un-pogaz/calibre 2026-01-21 14:55:38 +05:30
Kovid Goyal
0ac1b15b56
Cleanup previous PR
min_line_height should have 2 * outline_width. Dont know why it was 3.
Default outline width should be halved if we are doubling the meaning of
outline_width.
2026-01-21 14:49:11 +05:30
Kovid Goyal
4c5cd1db33
Merge branch 'fix-improve-outline' of https://github.com/un-pogaz/calibre 2026-01-21 14:48:49 +05:30
Kovid Goyal
24fbbd0290
Get the new icon engine working
Fixes #2134373 [Plugins' icons from icon themes - display issue](https://bugs.launchpad.net/calibre/+bug/2134373)
2026-01-21 14:41:33 +05:30
Kovid Goyal
202ea38790
... 2026-01-21 13:30:39 +05:30
Kovid Goyal
16c67f15e1
Avoid querying resource system for user theme icons when we know the user theme is not present 2026-01-21 13:29:05 +05:30
un-pogaz
219c880cde Bookshelf: make outline colors customisable 2026-01-21 08:48:28 +01:00
Kovid Goyal
f33e05b4ba
Start work on my own icon engine
Qt's builtin icon engines are not flexible enough for calibre's needs.
2026-01-21 13:01:16 +05:30
un-pogaz
f31501df96 reduce occurence of down resizing text 2026-01-21 08:30:11 +01:00
Kovid Goyal
0da6219b4c
Allow plugins to specify a folder in the zip file to load icons from
kiwidude's plugins use some crazy inefficient code that tries to load an
icon in multiple ways. With this change he can simply do:

get_icons(zfp, name, plugin_name, folder_in_zip_file='images')

This will load the icon efficiently from the user overrides/icon theme,
falling back to the icon from the zip file as a last resort.

Also, change get_icons() to always read the icon data from the zip file.
This is to support upcoming code to change icon themeing to support the
case of switching from one them to another during and when the first
theme has the icon and the second theme doesnt, loading the
fallback/default icon.
2026-01-21 10:36:32 +05:30
Kovid Goyal
6c63a1fa3e
Only show the Sort button on the search bar if the Sort By action has not been added to the search bar by the user. Fixes #2138770 [[Enhancement] Sort By - List view](https://bugs.launchpad.net/calibre/+bug/2138770) 2026-01-21 09:36:04 +05:30
un-pogaz
1b2e9d6f3f draw the outine in addition around the text
more intuitive result for the setting
2026-01-20 19:50:56 +01:00
un-pogaz
1e87c13d89 Bookshelf: fix empty intersection on text 2026-01-20 19:50:56 +01:00
Kovid Goyal
3e69c33552
Fix #2995 (KEPUB Output: Transfer the OMF cover image) 2026-01-20 22:54:44 +05:30
Kovid Goyal
bce7f1d785
Extra line height due to outline was doubled
Fix that. Calculate outline_width once only. And Use ceil() on height +
extra_height, since height() is also a float.
2026-01-20 22:48:16 +05:30
Kovid Goyal
7c4ae4d671
... 2026-01-20 22:15:26 +05:30
Kovid Goyal
50de399558
... 2026-01-20 20:42:33 +05:30
Kovid Goyal
e75f76f107
Bookshelf: add a user configurable outline around spine text 2026-01-20 20:33:27 +05:30
Kovid Goyal
e0eddd5452
Fix group by menu not being sorted due to a typo 2026-01-20 18:51:09 +05:30
Kovid Goyal
9ced42d5dd
string changes 2026-01-20 17:19:29 +05:30
Kovid Goyal
573c2c8e15
TXT Output: Add an option to replace images by their alt attribute text. Fixes #2137504 [Support alt text for text conversion](https://bugs.launchpad.net/calibre/+bug/2137504) 2026-01-20 14:17:52 +05:30
Kovid Goyal
b5b3f17b95
Bump beta version 2026-01-20 12:02:36 +05:30
Kovid Goyal
3e93791813
Avoid paying translation cost on import 2026-01-20 11:12:35 +05:30
Kovid Goyal
9a97c837f3
Cleanup previous PR 2026-01-20 11:09:27 +05:30
Kovid Goyal
59670f117d
Merge branch 'custom-colors' of https://github.com/un-pogaz/calibre 2026-01-20 10:51:56 +05:30
Kovid Goyal
73838c119b
When restoring book state ensure there is a current row 2026-01-20 10:45:11 +05:30
Kovid Goyal
6cbaba36cd
Ensure shelf_added is called even when no books are present 2026-01-20 10:43:02 +05:30
Kovid Goyal
abdfa7e364
DRYer 2026-01-20 10:26:38 +05:30
Kovid Goyal
405a636f11
Bookshelf: Fix restore_state not working
This fixes issues such as view not scrolling to current book on a
search.
2026-01-20 10:23:12 +05:30
Kovid Goyal
13114d40b2
Bookshelf: Automatically scroll to current book when current changes
This mimics the behavior of QAbstractItemView and fixes, for instance,
calibre://show-book URLs not scrolling to the current book.
2026-01-20 09:49:54 +05:30
Kovid Goyal
4b91ee982e
Fix changing libraries/updating search restriction not focusing the correct alternate view 2026-01-20 09:11:51 +05:30
un-pogaz
efe007fb8d Bookshelf: allow custom colors 2026-01-20 01:00:48 +01:00
un-pogaz
a63fc9786d ... 2026-01-19 21:55:02 +01:00
Kovid Goyal
42a6fe793a
Add an option to use bold fonts on the spine
Specially for JSWolf
2026-01-19 22:11:51 +05:30
Kovid Goyal
6e06d92ab1
Only wrap t two lines if the two line font size is larger than the single line font size would be 2026-01-19 22:06:15 +05:30
Kovid Goyal
0b28ae5ee8
... 2026-01-19 21:32:32 +05:30