Skip to content

Commit 9ee7b49

Browse files
committed
Allow using relative units for cover rounding
1 parent 075fbe7 commit 9ee7b49

5 files changed

Lines changed: 180 additions & 124 deletions

File tree

Changelog.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,52 @@
2323
# - title by author
2424
# }}}
2525

26+
{{{ 7.11.0 2024-05-24
27+
28+
:: new features
29+
30+
- Kindle driver: Add support for sending cover thumbnails to the Kindle Scribe
31+
32+
- A new options under Preferences->Look & feel to draw covers with rounded corners
33+
34+
- [2064674] Bulk metadata edit: Add a new tab where you can create rules to transform tags/authors/publishers for the selected books
35+
36+
- [2065544] Tag browser context menu for Formats now has Open with menu items
37+
38+
- [2064665] E-book viewer: When hovering over the top/bottom margin show a button indicating that a click will open the viewer controls. Can be configured via The Headers and footers section of the viewer Preferences.
39+
40+
- Spell check dialog: Also show count of currently displayed words
41+
42+
:: bug fixes
43+
44+
- [2065249] E-book viewer: Fix searching not ignoring ruby text
45+
46+
- Edit book: Save the state of the current book when opening a new book via File->Open book
47+
48+
- [2064887] Edit book: Fix importing a list of words into a user dictionary not working
49+
50+
- EPUB3 metadata: Do not fail to read metadata in the presence on invalid calibre user metadata in the OPF file with empty keys
51+
52+
- Get books: Fix rules to map tags on adding books not being applied to books downloaded via Get books
53+
54+
- [2064792] Spellcheck dialog: Move the checkbox to hide correctly spelled words with the rest of the checkboxes that filter the word list
55+
56+
:: improved recipes
57+
- Slate
58+
- Wall Street Journal
59+
- London Review of Books
60+
- Economist
61+
- Bloomberg
62+
- Business Week
63+
- The World Ahead
64+
- National Geographic
65+
66+
:: new recipes
67+
- Collider, Comic Book Archive, Make Use Of, MoviewWeb and ScreenRant by Spicy Poison
68+
- Lex Fridman Podcast by unkn0wn
69+
70+
}}}
71+
2672
{{{ 7.10.0 2024-05-03
2773

2874
:: new features

src/calibre/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from polyglot.builtins import environ_item, hasenv
1212

1313
__appname__ = 'calibre'
14-
numeric_version = (7, 10, 101)
14+
numeric_version = (7, 11, 0)
1515
__version__ = '.'.join(map(str, numeric_version))
1616
git_version = None
1717
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"

src/calibre/gui2/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ def create_defs():
429429
defs['cover_grid_show_title'] = False
430430
defs['cover_grid_texture'] = None
431431
defs['cover_corner_radius'] = 0
432+
defs['cover_corner_radius_unit'] = 'px'
432433
defs['show_vl_tabs'] = False
433434
defs['vl_tabs_closable'] = True
434435
defs['show_highlight_toggle_button'] = False
@@ -1766,7 +1767,7 @@ def clip_border_radius(painter, rect):
17661767
r = gprefs['cover_corner_radius']
17671768
if r > 0:
17681769
pp = QPainterPath()
1769-
pp.addRoundedRect(QRectF(rect), r, r)
1770+
pp.addRoundedRect(QRectF(rect), r, r, Qt.SizeMode.RelativeSize if gprefs['cover_corner_radius_unit'] == '%' else Qt.SizeMode.AbsoluteSize)
17701771
painter.setClipPath(pp)
17711772
try:
17721773
yield

src/calibre/gui2/preferences/look_feel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ def genesis(self, gui):
626626
r('bd_show_cover', gprefs)
627627
r('bd_overlay_cover_size', gprefs)
628628
r('cover_corner_radius', gprefs)
629+
r('cover_corner_radius_unit', gprefs, choices=[(_('Pixels'), 'px'), (_('Percentage'), '%')])
629630
r('cover_grid_width', gprefs)
630631
r('cover_grid_height', gprefs)
631632
r('cover_grid_cache_size_multiple', gprefs)

0 commit comments

Comments
 (0)