52877 Commits

Author SHA1 Message Date
Kovid Goyal
559c135400
Bump beta version 2026-01-24 13:44:47 +05:30
Kovid Goyal
dee80bb9f6
... 2026-01-24 13:31:24 +05:30
Kovid Goyal
c88a1c9667
Merge branch 'dry-rule-editor' of https://github.com/un-pogaz/calibre 2026-01-23 23:42:20 +05:30
Kovid Goyal
f158546962
Bookshelf: When drawing emblems at top/bottom of spine use the actual emblem size to reduce the height available for spine text 2026-01-23 23:40:00 +05:30
un-pogaz
d99ff857a2 DRY 2026-01-23 19:04:48 +01:00
Kovid Goyal
3687b74eb0
Merge branch 'fix-emblem-above' of https://github.com/un-pogaz/calibre 2026-01-23 22:30:26 +05:30
Kovid Goyal
daf30df53a
Fix various issues with the Edit Rules widgets in the Look & feel preferences
They were not saving their gprefs based sub-setting uness the rules also
changed. They were not restoring defaults.

Fix these and make the whole thing more robust by making them regular
registered settings with their own setting management class. So any
future changes will not require more tinkering.
2026-01-23 22:13:08 +05:30
Kovid Goyal
0305b65363
Bump dependencies for CVEs 2026-01-23 19:49:10 +05:30
un-pogaz
dec68cf1e2 Bookshelf: fix emblems not hidden at the left of the hovered spines 2026-01-23 11:44:15 +01:00
un-pogaz
2e27413b12 Bookshelf: fix emblems not show if setting expanded cover is above 2026-01-23 10:24:21 +01:00
Kovid Goyal
fb31c841d1
Bump beta version 2026-01-23 12:50:51 +05:30
Kovid Goyal
d51df00703
... 2026-01-23 00:16:31 +05:30
Kovid Goyal
3947e501c6
Bookshelf: Clean up emblem rendering re-using code from grid view 2026-01-23 00:07:50 +05:30
Kovid Goyal
c633a18d0f
Bookshelf: Fix a regression that broke rendering of downwards spine text 2026-01-22 23:32:57 +05:30
Kovid Goyal
1369efc827
Fix #2138855 [kepub conversion: tate-chu-yoko implementation differs from official Kobo kepub](https://bugs.launchpad.net/calibre/+bug/2138855) 2026-01-22 23:21:22 +05:30
Kovid Goyal
ec0de325e0
Add a tweak to change the font size of the AI chat widget. Fixes #2138862 [[Enhancement] Set Font Size for Ask AI](https://bugs.launchpad.net/calibre/+bug/2138862) 2026-01-22 17:17:52 +05:30
Kovid Goyal
ff4d1faaab
Update Times Literary Supplement 2026-01-22 11:39:31 +05:30
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