Commit Graph

38913 Commits

Author SHA1 Message Date
Kovid Goyal 9448bf3537 Since we can set the user agent font size in the standalone viewer, use that instead of overriding the font size of <html> 2019-09-16 11:13:45 +05:30
Kovid Goyal 15a512f3c8 Typo 2019-09-16 11:09:17 +05:30
Kovid Goyal 2ca39a8066 Fix images longer than a page being rendered on multiple pages instead of being rescaled
Apparently in newer blink engines bounding rect height is set to viewport
height for images even if they stretch over multiple columns.
2019-09-16 11:07:01 +05:30
Kovid Goyal 599d3dbddc Only add element for user stylesheet if needed and add it to html rather
than body
2019-09-16 10:05:42 +05:30
Kovid Goyal 62810e5111 p3 compat: Dont compare None to float 2019-09-16 08:53:32 +05:30
Kovid Goyal ad384c7fd8 Only set the users font size on <html> not <body>
There are apparently books out their that rely on being able to control
the font size of <body>.
2019-09-16 08:43:54 +05:30
Kovid Goyal 380ccbc2d4 Avoid test failures when making multiple pushes in a short time period 2019-09-15 05:09:36 +05:30
Kovid Goyal ecaa920e06 bypass cache on reload 2019-09-15 05:01:34 +05:30
Kovid Goyal d8281cad6b Setting the URL is not really a clear operation 2019-09-15 05:00:38 +05:30
Kovid Goyal 97087b89ab Fix Inspector not working in the viewer 2019-09-15 04:56:44 +05:30
Kovid Goyal 277d1f8bad Report blocked navigation requests 2019-09-15 04:52:00 +05:30
Kovid Goyal b900419810 Micro optimization 2019-09-15 04:34:23 +05:30
Kovid Goyal f3f244c41b Indicate if the viewer code is being compiled or not 2019-09-14 08:58:36 +05:30
Kovid Goyal 3d2c8d3878 Move the webengine part into a separate module for clarity 2019-09-13 21:18:07 +05:30
Kovid Goyal c946f3239e Bump beta version 2019-09-13 21:00:08 +05:30
Kovid Goyal e95ab50cba A demo plugin that shows how to run webengine from a user interface plugin 2019-09-13 20:55:06 +05:30
Kovid Goyal 737bfa44cb Remove ViewerPlugin since the new viewer currently has no plugin architecture 2019-09-13 20:14:18 +05:30
Kovid Goyal e8f5b51b6c Also apply book details stylesheet to comments editor widget 2019-09-13 14:14:19 +05:30
Kovid Goyal 4d937e2d5d Make refresh of book details panel after preferences work when there is no current index as well 2019-09-13 14:04:46 +05:30
Kovid Goyal 77141acd8b Forgot to also use central css for details popup 2019-09-13 13:54:26 +05:30
Kovid Goyal 901f1b1b74 Centralize all CSS used by book details 2019-09-13 13:52:46 +05:30
Kovid Goyal a37805bdc9 Add some UI to edit the book details CSS 2019-09-13 13:21:15 +05:30
Kovid Goyal 286f69bf9d Fix get_debug_executable() 2019-09-13 11:33:44 +05:30
Kovid Goyal 61005add0d Add support for run-local to calibre restart and run_calibre_debug 2019-09-13 10:28:26 +05:30
Kovid Goyal ac953dd2e6 Get rid of the :hover rule from the book details css file as Qt does not support it 2019-09-13 09:14:36 +05:30
Kovid Goyal 5f090e1175 Make the page turn left/right margins less obstrusive 2019-09-13 09:13:38 +05:30
Kovid Goyal 25639069db Show viewer controls help twice not once on first run 2019-09-13 09:13:38 +05:30
Kovid Goyal 1a442ec1d1 Only show th eloading spinner is loading takes more than 200ms 2019-09-13 09:13:38 +05:30
Kovid Goyal 8871de91f3 ... 2019-09-13 09:13:37 +05:30
Kovid Goyal 1668365156 Micro optimization 2019-09-13 09:13:37 +05:30
Kovid Goyal 1b679ae5c8 Fix some compiler warnings 2019-09-13 09:13:37 +05:30
Kovid Goyal 043f9a5b88 Workaround for error in scroll_to() on some japanese books with vertical text 2019-09-13 09:13:37 +05:30
Kovid Goyal 2dd562b731 DRYer 2019-09-13 09:13:37 +05:30
Kovid Goyal 75ffbbba42 Apparently styles plugins dont exist on linux 2019-09-13 09:13:37 +05:30
Kovid Goyal e93404f98a Bump beta version 2019-09-13 09:13:37 +05:30
Kovid Goyal 0c076ab759 Add the Qt styles plugins
Needed on windows for the system theme
2019-09-13 09:13:37 +05:30
Kovid Goyal bc54f9dbbb Viewer: Fix rendering of fullscreen images using SVG markup 2019-09-13 09:13:37 +05:30
Kovid Goyal 400450f193 Fix down key in flow mode acting as up key 2019-09-13 09:13:37 +05:30
Kovid Goyal d04234555d Fix incorrect invocation of scrollBy 2019-09-13 09:13:37 +05:30
Kovid Goyal cb5107472a Allow titles to wrap in vertical layout of book details 2019-09-13 09:13:36 +05:30
Kovid Goyal 4b1a4861b8 Bump beta version 2019-09-13 09:13:36 +05:30
Kovid Goyal 86a1499ca7 Editor: Fix changes in CSS files not being picked up by the preview panel 2019-09-13 09:13:36 +05:30
Kovid Goyal 1d64be1032 Avoid error print on shutdown 2019-09-13 09:13:36 +05:30
Kovid Goyal 26b44e936c Remove unused import 2019-09-13 09:13:36 +05:30
Kovid Goyal 9c0346bbb1 QTextBrowser should not require explicit link color override 2019-09-13 09:13:36 +05:30
Kovid Goyal f069848639 Use the calibre user interface font family and size for viewer chrome 2019-09-13 09:13:36 +05:30
Kovid Goyal 8901836673 Bundle distutils in the binaries as Pillow now requires it 2019-09-13 09:13:36 +05:30
Kovid Goyal 25bc0dc6c5 Also make the Context Menu key a shortcut for showing viewer chrome 2019-09-13 09:13:36 +05:30
Kovid Goyal d5bb19f8ec Only import Pillow from PIL 2019-09-13 09:13:36 +05:30
Kovid Goyal 3a6ad1e03a Add a build test for PIL JPEG support 2019-09-13 09:13:36 +05:30