bit Boilerplate's theme toggle shows the wrong theme after the OS switches between light and dark
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
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
ApplyThemeonly runs fromToggleTheme. - Anything else that reads
CurrentThemeor listens toTHEME_CHANGEDstays on the old scheme until the next manual toggle or a reload.
- Run the web app with no saved theme, so it follows the system.
- Switch the OS from light to dark, or emulate
prefers-color-scheme: darkin the browser's dev tools. - 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bitfoundation/bitplatform
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
bitfoundation/bitplatform#14070 ·
I maintainer di solito rispondono entro 1 giorno
-
bit Boilerplate's WebAssembly app takes too long to become interactiveForse già presa @yasmoradi l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
bitfoundation/bitplatform#14115 ·
I maintainer di solito rispondono entro 1 giorno
-
Security hardening for bit Boilerplate's sign-in codes, sessions, chatbot, push, uploads, token storage and CDForse già presa @yasmoradi l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
bitfoundation/bitplatform#14109 ·
I maintainer di solito rispondono entro 1 giorno
-
Bink improvementsForse già presa @msynk l’ha presa oggi. Apertaarea / bink
bitfoundation/bitplatform#14106 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Bmage improvementsForse già presa @msynk l’ha presa oggi. Apertaarea / bmage
bitfoundation/bitplatform#14105 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bitfoundation/bitplatform
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
AvaloniaUI/Avalonia#22568 ·
I maintainer di solito rispondono entro 2 giorni
-
[bug] 截图失败日志冲爆硬盘Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
babalae/better-genshin-impact#3846 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
lugassawan/swe-workbench#823 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/fluentui-blazor#5518 ·
I maintainer di solito rispondono entro 1 giorno
-
devtools
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno