Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bit Boilerplate's theme toggle shows the wrong theme after the OS switches between light and dark

Aperta
#13,681 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msynk ci sta già lavorando.

Dal 4/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area / templates

When the app follows the system theme, which is the default, switching the OS between light and dark while the app is open changes the page, because bit BlazorUI follows the OS. The app itself is never told. ThemeService only announces a theme change from ToggleTheme, so CurrentTheme keeps the old value:

  • The theme toggle in the app menu still says Light with the sun icon while the page is dark, and the toggle in the identity pages' header shows the wrong icon too.
  • On MAUI and Windows the native status bar and title bar keep their old colors, because ApplyTheme only runs from ToggleTheme.
  • Anything else that reads CurrentTheme or listens to THEME_CHANGED stays on the old scheme until the next manual toggle or a reload.
  1. Run the web app with no saved theme, so it follows the system.
  2. Switch the OS from light to dark, or emulate prefers-color-scheme: dark in the browser's dev tools.
  3. Open the app menu. The page is dark but the theme toggle still says Light.

This happens on both develop and bit11.

Expected: an OS switch updates the app's theme state the same way the toggle does.

Lingua principale
C#
Stelle
1.4k
Fork
264
Merge medio
13h 43m
PR unite (30g)
337

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bitfoundation/bitplatform

Tutte le issue di bitfoundation/bitplatform

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.