41367 Commits

Author SHA1 Message Date
Kovid Goyal
d2db909851
Dont use zero offset for element selections 2020-08-22 18:48:19 +05:30
Kovid Goyal
366a69a3cd
Fix decoding of CFI in a tag that has a range wrapper as its first child 2020-08-22 18:48:19 +05:30
Kovid Goyal
0c233efa27
Expicitly mark is selection extent was found or not 2020-08-22 18:48:18 +05:30
Kovid Goyal
9f4609aec2
Ensure pre-middle-close-callback is called only once if it returns True 2020-08-22 18:48:18 +05:30
Kovid Goyal
a3bc2c9d56
Fix selection extents not being reported correctly when selection ends at an element node 2020-08-22 18:48:18 +05:30
Kovid Goyal
f037fe8dbe
Misc fixes for editing highlights 2020-08-22 18:48:18 +05:30
Kovid Goyal
4c05616e7d
Buttons to finish editing highlight 2020-08-22 18:48:18 +05:30
Kovid Goyal
74cb446c60
Ensure handle colors are set properly 2020-08-22 18:48:18 +05:30
Kovid Goyal
3a5d99051c
Prevent selection_bar from becoming visible when create annotations panel is visible 2020-08-22 18:48:18 +05:30
Kovid Goyal
fcbdfc570d
Work on using a single panel to edit both notes and colors at once 2020-08-22 18:48:18 +05:30
Kovid Goyal
106c84e8b7
Add a highlight button to the selection bar 2020-08-22 18:48:18 +05:30
Kovid Goyal
1c38d64b1a
Add some basic operations to the selection bar 2020-08-22 18:48:18 +05:30
Kovid Goyal
626b2209d6
The chrome lookup word control is not a toggle 2020-08-22 18:48:17 +05:30
Kovid Goyal
bda006557a
Hide selection bar when main chrome or highlights chrome are shown 2020-08-22 18:48:17 +05:30
Kovid Goyal
2f9c735d2f
Start work on displaying selection bar 2020-08-22 18:48:17 +05:30
Kovid Goyal
05516bfd54
Track the selection position in the chrome 2020-08-22 18:48:17 +05:30
Kovid Goyal
23fb259c42
Viewer: Allow drag scrolling in paged mode as well 2020-08-22 18:48:17 +05:30
Kovid Goyal
07d63bd3af
Fix default selection foreground color 2020-08-22 18:48:17 +05:30
Kovid Goyal
ee5b7ecaa4
Show highlights in the highlights panel sorted by start position in book 2020-08-22 18:48:17 +05:30
Kovid Goyal
e0f1953ae6
Make selection background opaque on chrome 2020-08-22 18:48:17 +05:30
Kovid Goyal
29215758c3
... 2020-08-22 18:48:17 +05:30
Kovid Goyal
ad490e9cd6
Fix incorrect CFI when selecting text in a range wrapper that is the first child 2020-08-22 18:48:16 +05:30
Kovid Goyal
d5521f96a6
typo 2020-08-22 18:48:16 +05:30
Kovid Goyal
561570a897
Fix handles becoming invisible after changing highlight color 2020-08-22 18:48:16 +05:30
Kovid Goyal
1f124726c2
Avoid error when selecting a non-existent range wrapper 2020-08-22 18:48:16 +05:30
Kovid Goyal
60e8ddf968
Triple retry sleep time for tests thats flaky on github CI 2020-08-22 18:48:16 +05:30
Kovid Goyal
1b9318e01b
calibre portable: Add launchers for standalone viewer and editor 2020-08-22 18:48:16 +05:30
Kovid Goyal
9d31105ad0
Slight dulling of text brigthness in dark mode 2020-08-22 18:48:16 +05:30
Kovid Goyal
a54604d2e3
Retry the http_basic test once if it fails 2020-08-22 18:48:16 +05:30
Kovid Goyal
abba1ef004
Fix incorrect mapping of CFI to position for CFI at the start of a tag whose contents are wrapped in an annotation span 2020-08-22 18:48:16 +05:30
Kovid Goyal
873d6080fd
Use rmtree with retry when deleting after library move
Hopefully makes test failures more rare
2020-08-22 18:48:16 +05:30
Kovid Goyal
b3a3eace49
Allow pressing n to start adding notes when editing a highlight
Also add information about shortcuts to the various button tooltips
2020-08-22 18:48:15 +05:30
Kovid Goyal
7853364f1a
Fix opening and closing an existing highlight causes notes to be lost 2020-08-22 18:48:15 +05:30
Kovid Goyal
673bcb3b2b
Improve formatting of notes in the browse details panel 2020-08-22 18:48:15 +05:30
Kovid Goyal
62da3d119e
When showing all annotations in browser order newest to oldest 2020-08-22 18:48:15 +05:30
Kovid Goyal
5db444644f
Highlighting should be a top level section 2020-08-22 18:48:15 +05:30
Kovid Goyal
f05af50b30
Bump beta version 2020-08-22 18:48:15 +05:30
Kovid Goyal
12dded643f
Dont gate annotations behind develop mode anymore 2020-08-22 18:48:15 +05:30
Kovid Goyal
a0fabf3e57
Remove unneeded __future__ imports 2020-08-22 18:48:15 +05:30
Kovid Goyal
87850cbb7f
Add some documentation for highlighting 2020-08-22 18:48:15 +05:30
Kovid Goyal
0067cdd775
Dont show removed annotations in the browser 2020-08-22 18:48:14 +05:30
Kovid Goyal
cf7a40a960
Allow easily editing notes in the highlights panel 2020-08-22 18:48:14 +05:30
Kovid Goyal
90f664e645
Focus webview when performing highlight action 2020-08-22 18:48:14 +05:30
Kovid Goyal
3aeeca3cd8
Display timestamp in local timezone 2020-08-22 18:48:14 +05:30
Kovid Goyal
572341e632
Display full annotation text in details panel 2020-08-22 18:48:14 +05:30
Kovid Goyal
70f1540484
Fix sync not working for highlights 2020-08-22 18:48:14 +05:30
Kovid Goyal
c003690502
Fix syncing for anon users 2020-08-22 18:48:14 +05:30
Kovid Goyal
18c779a1a8
Allow syninc annots from viewer to specific content server user 2020-08-22 18:48:14 +05:30
Kovid Goyal
d11b9b6f29
... 2020-08-22 18:48:14 +05:30
Kovid Goyal
9af2fea710
Allow easily reading viewer config data from the main calibre process 2020-08-22 18:48:14 +05:30