Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pdf-viewer: Opimize toggle dark mode logic for #453 #457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2020
Merged

pdf-viewer: Opimize toggle dark mode logic for #453 #457

merged 1 commit into from
Dec 1, 2020

Conversation

HollowMan6
Copy link
Contributor

Adopted alternative solution in #453 by @Jdogzz

Use i to toggle among dark mode excluding images -> dark mode including images -> normal mode -> ...

In addition, you can configure the emacs var dict to change the default behavior. If emacs var dict eaf-pdf-dark-exclude-image is true, the default dark mode will exclude images, otherwise it will include images.

Signed-off-by: Hollow Man [email protected]

Comment on lines +247 to +249
self.inverted_mode_exclude_image = True
if (self.emacs_var_dict["eaf-pdf-dark-exclude-image"] == "false"):
self.inverted_mode_exclude_image = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.inverted_mode_exclude_image = self.emacs_var_dict["eaf-pdf-dark-exclue-image"] == "true"

Is better way.

Anyway I have fix this problem in newest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants