Mingde (Matthew) Zeng
bca41e331e
core: redesign eaf-*-dark-mode logic
...
Addresses #318 . Below is a snippet of the wiki explaining the new logic.
```org-mode
By default, a number of EAF apps will switch to dark mode if your current Emacs theme is dark.
You can override the default by setting it to =true=, =false=, or =follow=, which is unchanged.
#+BEGIN_SRC emacs-lisp
(eaf-setq eaf-browser-dark-mode "true")
(eaf-setq eaf-terminal-dark-mode "false")
(eaf-setq eaf-mindmap-dark-mode "follow") ; default option
(eaf-setq eaf-pdf-dark-mode "ignore") ; see below
#+END_SRC
In EAF PDF Viewer, since you can interactively toggle inverted mode using =i= (default keybinding), it has an *additional* option to be more flexible:
When =eaf-pdf-dark-mode= is =ignore=, opening a PDF file for the first time will =follow= the current Emacs theme. Toggle inverted mode however you want, closing the buffer will record the final state of the dark mode. Next time the PDF file opens, it will restore the previous state. Therefore eaf-pdf-dark-mode will differ per file.
```
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Mingde (Matthew) Zeng
4c70953f5c
Redesign build_interactive_method, generalize with build_all_methods
...
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Mingde (Matthew) Zeng
166798490a
Redesign build_widget_method to build_interactive_method
...
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Mingde (Matthew) Zeng
77f805ad1b
Rename scroll -> scroll_other_buffer, update_details -> update_buffer_details
...
So the names are more precise and better reflect what they really are.
Also some scroll code refactoring.
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
hollowman6
0c6340a9c7
PDF: exclude images in dark mode
6 years ago
luhuaei
523685f897
pdf-viewer: fix don't select text on first page
6 years ago
Andy Stewart
1633573162
PDF Viewer: release mouse after receive button release event, make
...
other EAF app can work with mouse event.
6 years ago
luhuaei
76aa8cae6d
pdf-viewer: fix click uri error
6 years ago
luhuaei
5b168ce972
pdf-viewer: click select
6 years ago
luhuaei
9c24e154fd
pdf-viewer: fix return value error
6 years ago
Andy Stewart
d39ef0d2f6
Remove synchronal function 'call_emacs', ready for receive websocket
...
patches that port EAF to Windows.
6 years ago
Andy Stewart
507b7af7aa
No save table file anymore, other plugin read table content by
...
'get_toc' function.
6 years ago
Andy Stewart
464f76431a
Format toc indent at Python side.
6 years ago
Andy Stewart
99802e7348
PDF Viewer: add new command eaf-pdf-outline.
6 years ago
luhuaei
d643d69323
pdf-viewer: fix mouse release event don't catch
6 years ago
luhuaei
6a178b5aa8
pdf-viewer: fix click error on zoom out
6 years ago
luhuaei
7d1cdb5546
pdf-viewer: fix page display on right when zoom out
6 years ago
Andy Stewart
567a7fec95
PDF Viewer: refactroy scroll function name.
6 years ago
Leo Colisson
4fe9aee529
Fix horizontal scrolling into a smooth movement
6 years ago
Mingde (Matthew) Zeng
5351e3373e
Revise EAF PDF keybindings
6 years ago
luhuaei
49e8e4c619
fix: pdf-viewer horizontal wheel scroll
6 years ago
Andy Stewart
bfc2305230
destroy_buffer interface is enough, remove before_destroy_buffer.
6 years ago
luhuaei
1d626dc056
pdf-viewer: fix cursor position error on horizontal offset
6 years ago
luhuaei
d9e00126b1
pdf-viewer: fix display on right when read_mode is fit_to_height
6 years ago
luhuaei
c0b3373419
pdf-viewer: support scroll left and right
6 years ago
Andy Stewart
df0ac5066a
Remove background_color interface and avoid terminal flash when loading.
6 years ago
Andy Stewart
bec77e1462
Add 'call_emacs' interface: python call elisp method and wait return result.
6 years ago
Andy Stewart
766d690682
Add select_left_tab and select_right_tab commands.
6 years ago
Andy Stewart
46149dad51
Remove test code.
6 years ago
luhuaei
be098a3e1a
pdf-viewer: add interface get current page
6 years ago
Andy Stewart
688de33de8
Add eaf-pdf-dark-mode
6 years ago
Andy Stewart
165f43b7c7
Default EAF app follow current theme mode (light or dark)
6 years ago
Andy Stewart
d66e864a0e
Move module_path in Buffer
6 years ago
Andy Stewart
2819866c1f
Revert "Pass module_path to Buffer."
...
This reverts commit 2894c4a24f .
6 years ago
Andy Stewart
2894c4a24f
Pass module_path to Buffer.
6 years ago
Andy Stewart
189dce5c11
1. We need delete QWebEnginePage manual, otherwise QtWebEngineProcess won't quit.
...
2. Refactroy destory interface of core/Buffer.py
6 years ago
Andy Stewart
19f5874c7d
Add eaf-open-doc command.
6 years ago
Andy Stewart
cccbfed4ca
Use build_widget_method and build_browser_method to remove duplicate code.
6 years ago
Andy Stewart
7be9317aa1
When link is uri, open by EAF browser.
6 years ago
Andy Stewart
48ac69255a
Refactory, EAF widget should use self.buffer.foo to call `foo` method
...
that define in buffer (AppBuffer).
6 years ago
Matthew
909a05ee2b
Make Browser and PDF Viewer share same markers
6 years ago
luhuaei
ad493da760
pdf-viewer: support edit annot text.
...
refactor origin browser focus text function to support browser and pdf-viewer.
6 years ago
luhuaei
327077f74e
pdf-viewer: Fix global coordinate Error.
6 years ago
luhuaei
4ceb004b73
pdf-viewer: Fix Rect.contains() Error.
6 years ago
luhuaei
08cb0d8962
pdf-viewer: limit action on don't PDF file.
6 years ago
luhuaei
1f2c06be36
pdf-viewer: Fix low version don't Page.annots().
6 years ago
luhuaei
28d9ab42fe
pdf-viewer: Fix hover.
6 years ago
luhuaei
ddec12eaf2
pdf-viewer: support delete annot.
6 years ago
luhuaei
01a55a8f3b
pdf-viewer: refactor jump link code.
6 years ago
luhuaei
3d40def506
pdf-viewer: add multi annot type for select text.
6 years ago