Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dark mode: add class to invert image brightness#128

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

hugovk
Copy link
Member

@hugovkhugovk commentedApr 28, 2023
edited
Loading

Forpython/cpython#103960.

Re:#44 (comment).

Add a class to invert image brightness (but not contrast), similar to how we handled it for the PEPs repo:python/peps#2409 andpython/peps#2949.

We can then add this class to images like this:

..figure::hashlib-blake2-tree.png:alt:Explanation of tree mode parameters.:class:invert-in-dark-mode

Which changes this:

Detailsimage

Into:

Detailsimage

And light mode remains unchanged:

Detailsimage

This can be merged before or afterpython/cpython#103983.

@pradyunsgpradyunsg merged commit5646c93 intopython:mainApr 30, 2023
@hugovkhugovk deleted the dark-mode-img.invert-in-dark-mode branchApril 30, 2023 09:50
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@pradyunsgpradyunsgpradyunsg approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@hugovk@pradyunsg

[8]ページ先頭

©2009-2025 Movatter.jp