Commit Graph

39113 Commits

Author SHA1 Message Date
Kovid Goyal 5ea542b13c Viewer: Improve rendering of comics. No blank pages after large images or after every image in multi-page mode. 2019-10-09 16:41:05 +05:30
Kovid Goyal 871b0386de Hide loading overlay on book load failure 2019-10-09 16:36:58 +05:30
Kovid Goyal 7b1e665186 Viewer: Show nicer error message for DRMed books
Fixes #1847468 [Error when reading DRM protected file from amazon](https://bugs.launchpad.net/calibre/+bug/1847468)
2019-10-09 16:26:38 +05:30
Kovid Goyal be146674de Apparently layoutStyle() is deprecated 2019-10-09 15:01:32 +05:30
Kovid Goyal 83dd9c375d Viewer: Fix a regression that broke creating new color schemes
Fixes #1847407 [Unhandled error when adding new color scheme](https://bugs.launchpad.net/calibre/+bug/1847407)
2019-10-09 14:32:27 +05:30
Kovid Goyal 21df277dc4 Viewer: Make it easier to use the bookmarks panel with only keyboard. Fixes #1847423 [[Feature] Make ebook viewer keyboard-friendly](https://bugs.launchpad.net/calibre/+bug/1847423) 2019-10-09 14:11:23 +05:30
Kovid Goyal e2ded28390 Viewer: Set the classes calibre-viewer-paginated and calibre-viewer-scrolling on the <body> tag in Paged and Flow modes. This allows the User styles to target these modes, if needed. Fixes #1847427 [Request New Feature](https://bugs.launchpad.net/calibre/+bug/1847427) 2019-10-09 13:06:14 +05:30
Kovid Goyal 6f09624280 When calculating CFI in paged mode go column-by-column from left to right and in each column start form midpoint and expand outwards 2019-10-09 12:55:45 +05:30
Kovid Goyal 1ca6398471 Viewer: Also show book position in Goto list 2019-10-09 11:39:49 +05:30
Kovid Goyal 4a074eb2bf Viewer: Fix preferences under Scrolling behavior not being saved correctly 2019-10-09 11:34:34 +05:30
Kovid Goyal 3faa52ee58 Viewer: Allow jumping to a book position, in addition to a CFI location via Go to->Location 2019-10-09 11:23:22 +05:30
Kovid Goyal 1cdface5ad Viewer: Fix remembered position sometimes off by one page in paged mode. Fixes #1847322 [Viewer opens to wrong page](https://bugs.launchpad.net/calibre/+bug/1847322) 2019-10-09 09:13:09 +05:30
Kovid Goyal 5d272e86e8 ... 2019-10-09 09:10:51 +05:30
Kovid Goyal a79c83cb9e Viewer: Fix scrollbar showing up on initial book open even if disabled in preferences. Fixes #1847323 [Scrollbar shows even when disabled on book open](https://bugs.launchpad.net/calibre/+bug/1847323) 2019-10-09 07:43:18 +05:30
Kovid Goyal 0605ec0054 Viewer: restrict max size of margin page turn indicators to 25px rather than 75px 2019-10-08 22:43:20 +05:30
Kovid Goyal acad92b5a3 Viewer: Fix SVG images that use xlink:href to refer to paths not being displayed. Note you will have to reload the book to see the fix. Fixes #1847181 [Private bug](https://bugs.launchpad.net/calibre/+bug/1847181) 2019-10-08 21:45:14 +05:30
Kovid Goyal 32382b7b37 Simplify loading overlay implementation 2019-10-08 21:31:27 +05:30
Kovid Goyal 29899bec68 Remove unused code 2019-10-08 19:32:40 +05:30
Kovid Goyal c264cf7a21 Viewer: Dont flash the home page before loading a book if a book has been specified 2019-10-08 19:23:08 +05:30
Kovid Goyal 96ebc4bda3 Prevent loading overlay from slowing actual loading
The python GIL means quick pre-emption is too costly
2019-10-08 18:34:20 +05:30
Kovid Goyal 5385df337e Viewer: Fix ctrl+m shortcut not working on windows 2019-10-08 18:08:51 +05:30
Kovid Goyal 88ed3546be Viewer: Use Qt for errors and the loading spinner
Makes the UI more consistent with the rest of calibre.

Also, change the initial loading text depending on
whether the prepared book is already cached or not.
2019-10-08 15:42:14 +05:30
Kovid Goyal 53ffa30767 ... 2019-10-08 12:55:19 +05:30
Kovid Goyal 9fa545f5d9 Book details: Automatically adjust the link color when using a dark theme 2019-10-08 11:16:45 +05:30
Kovid Goyal 551c868899 Add macOS specific shortcuts for changing font size 2019-10-08 08:25:44 +05:30
Kovid Goyal fd2eb6b6d8 Content server; Fix regression that caused series name in book details view not not be blue to indicate it is clickable 2019-10-08 08:24:12 +05:30
Kovid Goyal 77f240a4d3 version 4.1.0 v4.1.0 2019-10-08 07:03:45 +05:30
Kovid Goyal 3c1c90ba7d Refactor the viewer preferences
DRYer and add restore default/OK/Cancel buttons to all preferences
sections
2019-10-07 22:23:40 +05:30
Kovid Goyal a2708e8ea2 Viewer: Also apply changes to preferences when pressing esc as there are a number of people who do this and then complain that the preferences dont stick, and I have only so much patience 2019-10-07 20:16:08 +05:30
Kovid Goyal b1ef8dc2fb Right clicking in overlays should act like Esc 2019-10-07 16:16:23 +05:30
Kovid Goyal b7af7c7df6 Fix dragging scrollbar slider not working when mouse leaves window 2019-10-07 16:09:12 +05:30
Kovid Goyal 696a93deea Edit book: Font manager: Fix removing embedded font failing if @font-face rule has no src. Fixes #1847052 [Unable to remove font from font manager](https://bugs.launchpad.net/calibre/+bug/1847052) 2019-10-07 16:01:22 +05:30
Kovid Goyal 9ee5bc98c5 Automatically adjust scrollbar colors to match current color scheme 2019-10-07 13:38:13 +05:30
Kovid Goyal 63fda1fed3 Implement the scrollbar inside the web view
This allows it to be hidden naturally when displaying the overlay.
Also gives nice control when clicking in the gutter to scroll by page
2019-10-07 13:18:24 +05:30
Kovid Goyal bb5b7b0253 Fix clicking on scrollbar arrows/gutter not scrolling text 2019-10-07 07:22:03 +05:30
Kovid Goyal 6b224f2a35 Use an all files filter when adding links unless treat as image is checked 2019-10-07 07:09:52 +05:30
Kovid Goyal e6b44cf5fa PDF Output: Ignore 4 byte differences in glyph sizes when merging. Fixes #1846982 [Conversion from ePub to PDF fails](https://bugs.launchpad.net/calibre/+bug/1846982) 2019-10-07 06:57:17 +05:30
Kovid Goyal 2207a86ea7 Better error message when there is a glyph mismatch 2019-10-07 06:41:14 +05:30
Kovid Goyal c668fec87b Edit metadata: Use a border rather than background color to indicate correct title and author sort values. Works better with dark themes. Fixes #1846967 [Private bug](https://bugs.launchpad.net/calibre/+bug/1846967) 2019-10-07 06:19:20 +05:30
Kovid Goyal d84626293c PDF Output: Fix a bug that prevented the first style property in the header or footer template from being applied 2019-10-06 23:07:56 +05:30
Kovid Goyal 77dc63cab9 Fix typo in dropbox fw version in kobo driver 2019-10-06 22:53:43 +05:30
Kovid Goyal 7e49092f17 Move scrollbar suppression into the load pipeline and only suppress until load is completed 2019-10-06 22:51:54 +05:30
Kovid Goyal 0ccedfdcc7 Viewer: Add an option to display a scrollbar 2019-10-06 22:36:57 +05:30
Kovid Goyal 42ae6dea61 ... 2019-10-06 21:09:56 +05:30
Kovid Goyal d3c0452d6f Viewer: Hide the browser provided scrollbar that flashes momentarily on page load. Fixes #1846922 [Scroll bar in new viewer](https://bugs.launchpad.net/calibre/+bug/1846922) 2019-10-06 20:20:57 +05:30
Kovid Goyal 0e8d5d3793 Merge branch 'master' of https://github.com/davidfor/calibre 2019-10-06 19:19:32 +05:30
David 48d1bf424c Bump supported Kobo firmware version
Plus add a tag for Dropbox support. Will be adding something for that
later, but, won't harm anything at the moment.
2019-10-07 00:43:09 +11:00
Kovid Goyal 73077b2207 Same fix for bottom margin as well 2019-10-06 12:36:01 +05:30
Kovid Goyal cd2049befd Viewer: Fix clicking on margins causing keyboard shortcuts to not work until the main text is clicked on again 2019-10-06 12:34:11 +05:30
Kovid Goyal 87be626af7 Viewer: Add options to control scrolling using the mouse in paged mode.
Fixes #1846800 [Feature request: Add an option for mouse scroll to scroll by screen fulls rather than a single page](https://bugs.launchpad.net/calibre/+bug/1846800)
2019-10-06 12:32:22 +05:30