Commit Graph

41063 Commits

Author SHA1 Message Date
Kovid Goyal eb7bdaca4e Ensure handles are the same height 2020-08-22 18:48:29 +05:30
Kovid Goyal 1c5fed9e4c Fix for tiny selection handle in some circumstances 2020-08-22 18:48:29 +05:30
Kovid Goyal 0319f8325a Selection bar should not popup during searches 2020-08-22 18:48:28 +05:30
Kovid Goyal 7006b69901 Bump beta version 2020-08-22 18:48:28 +05:30
Kovid Goyal 6470aed8c3 Preserve scrollbar value 2020-08-22 18:48:28 +05:30
Kovid Goyal 654e69829b Use a dedicated for notes edit 2020-08-22 18:48:28 +05:30
Kovid Goyal 9da5c6eb57 Allow editing highlight notes from annotations browser 2020-08-22 18:48:28 +05:30
Kovid Goyal b90e6964d0 Add a delete button to the details panel as well 2020-08-22 18:48:28 +05:30
Kovid Goyal ff063d0783 Use correct color for legacy annots 2020-08-22 18:48:28 +05:30
Kovid Goyal 93cb98185f Add a button to delete selected annotations in the browse annotations tool 2020-08-22 18:48:28 +05:30
Kovid Goyal 6acd9c1989 The copy shortcut should work when selection bar is visible 2020-08-22 18:48:28 +05:30
Kovid Goyal d69efedb2f Allow adding a search in book button to the selection bar
Also have the keyboard shortcuts to run a search work when the selection
bar is visible.
2020-08-22 18:48:28 +05:30
Kovid Goyal ef35803ddb Restore focus after closing highlight editor 2020-08-22 18:48:27 +05:30
Kovid Goyal 081c14c18a Allow creation of custom styles 2020-08-22 18:48:27 +05:30
Kovid Goyal fdc3c82dbf Viewer: Allow using preferences when no book is open 2020-08-22 18:48:27 +05:30
Kovid Goyal 57c0517508 Server and Viewer: Add support for dark themes in the UI
UI now uses dark colors when either the browser is in dark mode or the
viewer color theme is dark
2020-08-22 18:48:27 +05:30
Kovid Goyal 9283e58359 DRYer 2020-08-22 18:48:27 +05:30
Kovid Goyal 75a14bad36 Use CSS variables for themeing
Allows easily changing colors dynamically for light/dark mode or even
user themes
2020-08-22 18:48:27 +05:30
Kovid Goyal 57bbbf97a8 Fix color application in dark mode 2020-08-22 18:48:27 +05:30
Kovid Goyal 2c8f751455 Add text-decoration based highlight styles 2020-08-22 18:48:27 +05:30
Kovid Goyal 83490b316f Implement scrolling keyboard shortcuts when selection bar is showing
Also remove unused code
2020-08-22 18:48:27 +05:30
Kovid Goyal f6aa53e602 Quick highlight works again and confirm on remove highlight 2020-08-22 18:48:26 +05:30
Kovid Goyal fa13ee5943 Clean up button box 2020-08-22 18:48:26 +05:30
Kovid Goyal 16d241b9d2 Edit button on highlight panel works again 2020-08-22 18:48:26 +05:30
Kovid Goyal 13e2ec4b63 Creating and removing highlights works 2020-08-22 18:48:26 +05:30
Kovid Goyal dd3810f6f4 Cancel button on edit notes now works 2020-08-22 18:48:26 +05:30
Kovid Goyal df352ba239 Fix right click menus in text fields not working in desktop viewer 2020-08-22 18:48:26 +05:30
Kovid Goyal b8e04661b7 Specialize accept button text based on whether we are editing a current annotation or not 2020-08-22 18:48:26 +05:30
Kovid Goyal 5d63ddfc03 Make the edit panel smaller 2020-08-22 18:48:26 +05:30
Kovid Goyal 136a9f64ec Fix editor being closed on resize 2020-08-22 18:48:26 +05:30
Kovid Goyal 95248db34e Make finding highlights overlapping the selection O(n) in the size of the selection rather than the number of existing highlights 2020-08-22 18:48:26 +05:30
Kovid Goyal 1d04aa3d44 Get the editor panel properly positioned 2020-08-22 18:48:25 +05:30
Kovid Goyal 8fa67e7bfd Track annot over entire selection
Also work on notes/color editor panel
2020-08-22 18:48:25 +05:30
Kovid Goyal 1ce8b68de6 Remove the create_annotation module
The entire UI is being removed since all operations will be performed
via the selection bar
2020-08-22 18:48:25 +05:30
Kovid Goyal 948acd6a55 Move AnnotationsManager into the annotations module 2020-08-22 18:48:25 +05:30
Kovid Goyal 2668212179 Remove adjust selection action 2020-08-22 18:48:25 +05:30
Kovid Goyal 4f68fb39fc Allow dragging of selection handles 2020-08-22 18:48:25 +05:30
Kovid Goyal a0b6979fbf Show selection handles with selection bar 2020-08-22 18:48:25 +05:30
Kovid Goyal 258cec5889 Bump CI python version 2020-08-22 18:48:25 +05:30
Kovid Goyal e117b2c849 Enable auto update of translations on transifex 2020-08-22 18:48:25 +05:30
Kovid Goyal 7bfaa55381 Add a note on how to sync annots with the browser viewer 2020-08-22 18:48:25 +05:30
Kovid Goyal 3c4fb4f4ef Indicate current olor on quick highlight icon 2020-08-22 18:48:24 +05:30
Kovid Goyal 8d4744c3e4 Change icon of remove highlight to trash can
Consistent with other remove buttons
2020-08-22 18:48:24 +05:30
Kovid Goyal 185e331e95 Fix browse annotations empty on ever second invocation 2020-08-22 18:48:24 +05:30
Kovid Goyal 265a620bee Fix Edit button in highlights panel not working
I dont know why defaultView is undefined, seems like a chrome bug
2020-08-22 18:48:24 +05:30
Kovid Goyal 8eca4d7ced Retry vendored dependency download failures on CI
GitHub Actions is getting insanely flaky
2020-08-22 18:48:24 +05:30
Kovid Goyal bc8d76cfef Fix sphinx error about duplicate definition of Tool 2020-08-22 18:48:24 +05:30
Kovid Goyal 6af3aefb50 Fix sphinx deprecation warning 2020-08-22 18:48:24 +05:30
Kovid Goyal 898169d270 Bump beta version 2020-08-22 18:48:24 +05:30
Kovid Goyal 86debe8dd0 Dont show selection bar during drag scroll 2020-08-22 18:48:24 +05:30