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

docs: respect system colorscheme#10667

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

NiclasvanEyk
Copy link
Contributor

@NiclasvanEykNiclasvanEyk commentedOct 20, 2024
edited by pydantic-hookybot
Loading

Change Summary

Screen.Recording.2024-10-20.at.22.45.41.mov

The left browser window shows the current version of the docs, the right one contains the changes from this PR

This PR makes the docs respect the systems color preference by default. As can be seen in the video, it currently defaults to light mode, even if I've set my OS to dark mode.

This also adds a new option to the theme picker next to the search. This means the cycle is now

  • "auto" (default)
  • "always light"
  • "always dark"

Related issue number

Not an issue, but the dark mode seems to have been introduced in#2913. The convention that the button icon and alt text reflects theaction instead of the current state is retained. The latest comment on the referenced PR also indicates that other users also expect the systems color preference to be the default.

Other Related Things

Here is a link to the docs of Mkdocs Material, where they describe the automatic dark/light mode:https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#automatic-light-dark-mode

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review,please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer:@sydney-runkle

The docs now use the systems color preference by default. A new thirdoption was added to the theme picker, which automatically adjusts thelight/dark mode.
@github-actionsgithub-actionsbot added the relnotes-fixUsed for bugfixes. labelOct 20, 2024
@codspeed-hqCodSpeed HQ
Copy link

CodSpeed Performance Report

Merging#10667 willnot alter performance

ComparingNiclasvanEyk:use-system-colorscheme-by-default (9735149) withmain (06a04b5)

Summary

✅ 44 untouched benchmarks

@github-actionsGitHub Actions
Copy link
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@NiclasvanEyk
Copy link
ContributorAuthor

please review

pydantic-hooky[bot] reacted with thumbs up emoji

Copy link
Member

@ViicosViicos left a comment

Choose a reason for hiding this comment

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

Thanks for adding the video example. This looks good

@ViicosViicos merged commit220b2f6 intopydantic:mainOct 21, 2024
59 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ViicosViicosViicos approved these changes

Assignees

@sydney-runklesydney-runkle

Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@NiclasvanEyk@Viicos@sydney-runkle

[8]ページ先頭

©2009-2025 Movatter.jp