Sign-in page: the app that opens it can choose light or dark #376

Merged
jcoffey-dev merged 1 commits from feat/login-theme-hint into main 2026-11-11 18:51:09 +00:00
Owner

The sign-in page reads theme=light or theme=dark from its URL and sets data-theme before the first paint. Anything else, or no parameter, follows the OS as before. The authorization endpoint is the page itself (/login), so an app only adds the parameter to its authorize request; no server code changes.

Checked in headless Chromium: theme=dark on a light OS and theme=light on a dark OS both render the chosen scheme; no parameter still follows the OS. Minified and gzipped copies rebuilt with resources/scripts/minify_html.sh --gzip (the sync test compares them).

The console and webmail sending their current theme come in their own PRs.

Refs #375

The sign-in page reads `theme=light` or `theme=dark` from its URL and sets `data-theme` before the first paint. Anything else, or no parameter, follows the OS as before. The authorization endpoint is the page itself (`/login`), so an app only adds the parameter to its authorize request; no server code changes. Checked in headless Chromium: `theme=dark` on a light OS and `theme=light` on a dark OS both render the chosen scheme; no parameter still follows the OS. Minified and gzipped copies rebuilt with `resources/scripts/minify_html.sh --gzip` (the sync test compares them). The console and webmail sending their current theme come in their own PRs. Refs #375
jcoffey-dev added 1 commit 2026-11-11 18:35:20 +00:00
Sign-in page: the app that opens it can choose light or dark
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 10m27s
1273161569
The page reads theme=light or theme=dark from its URL (the authorization endpoint is the page itself, so an app adds it to its authorize request) and sets data-theme before the first paint. Anything else, or no parameter, follows the OS as before. Minified and gzipped copies rebuilt with resources/scripts/minify_html.sh --gzip.

Refs #375
jcoffey-dev merged commit b3ab4997d6 into main 2026-11-11 18:51:09 +00:00
jcoffey-dev deleted branch feat/login-theme-hint 2026-11-11 18:51:10 +00:00
Sign in to join this conversation.