FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-123430: Add dark mode support to pages generated by http.server by YorikHansen · Pull Request #123475 · python/cpython · GitHub

/ cpython Public

gh-123430: Add dark mode support to pages generated by http.server - #123475

Merged
hugovk merged 6 commits into
python:mainfrom
YorikHansen:issue-123430
Sep 3, 2024
Merged

gh-123430: Add dark mode support to pages generated by http.server#123475
hugovk merged 6 commits into
python:mainfrom
YorikHansen:issue-123430

Conversation

YorikHansen commented Aug 29, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

The error pages and the directory lists generated by http.server did not allow browsers to enable the inbuilt dark mode. This change allows for that by setting the css property color-scheme properly.

The error pages and the directory lists generated by http.server did not allow browsers to enable the inbuilt dark mode. This change allows for that by setting the css property color-scheme properly.

ghost commented Aug 29, 2024
edited by ghost
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

bedevere-app Bot commented Aug 29, 2024

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

…7wXl9.rst

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

main

Testing ./python.exe -m http.server and looking at a directory listing and an error page:

It's the same in light and dark mode on Chrome with macOS.

PR

In dark mode:

And in light mode it's the same as main.

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I cannot review the CSS, but I like @hugovk's screenshots and the feature.

Copy link
Copy Markdown
Member

Should this get backported? The user seeing the incorrect color scheme sounds like a bug to me.

vstinner commented Sep 3, 2024

Copy link
Copy Markdown
Member

Should this get backported? The user seeing the incorrect color scheme sounds like a bug to me.

It's a new feature, it should not be backported.

hugovk commented Sep 3, 2024

Copy link
Copy Markdown
Member

@YorikHansen Please could you also mention this in What's New?

https://docs.python.org/3.14/whatsnew/3.14.html#improved-modules

hugovk merged commit 9684f40 into python:main Sep 3, 2024

hugovk commented Sep 3, 2024

Copy link
Copy Markdown
Member

Thank you!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL