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>master
parent
849f0d9743
commit
bca41e331e
5 changed files with 13 additions and 11 deletions
Loading…
Reference in new issue