Closed lemyx closed 1 year ago
你先把 eaf-org-dark-mode 这个变量改成 "light" 试一下吧。
@ententent 已经被 https://github.com/emacs-eaf/eaf-org-previewer/commit/c55367506966dc19dfd470b39bd04ad1361aa8aa 这个补丁修复。
这个问题的本质不是 EAF 的主题代码没有生效,而是 org-html-export-to-html 这个函数在生成 html 时写死了CSS样式,导致EAF即使切换主题也没法修改写死的颜色。
新的补丁在加载Html文件后, 根据Emacs的主题动态调整了文字和背景色, 现在应该没问题了。
如果发现有新的样式没有改变, 可以在 https://github.com/emacs-eaf/eaf-org-previewer/blob/c55367506966dc19dfd470b39bd04ad1361aa8aa/buffer.py#L60 这里修改 tag 的名字, 欢迎发送补丁。
Describe the bug
用
eaf-org-previewer
打开org文件预览,似乎是暗黑模式的。可能和我的主题有关。参考readme.md, 发现
M-d toggle_dark_mode
,但是按下去M-d
没有反应。Expected behavior
M-d
或者之类的键,美观清楚地显示预览。Versions (please complete the following info):
Ubuntu 22.04.2 Desktop
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-04-16
Screenshots
Additional context
*eaf*
输出如下