misskey/packages/frontend
copilot-swe-agent[bot] 1520fa499d Fix dark mode sync not applying theme correctly on page load
When syncDeviceDarkMode is enabled and the device's dark mode preference changes between sessions, the theme would not be reapplied on page load if there was a cached theme. This caused a visual mismatch where the data-color-scheme attribute was correct but the actual theme CSS variables were from the wrong theme.

The fix checks if the cached color scheme matches the current dark mode state and forces immediate theme application if they differ.

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2025-10-21 12:48:51 +00:00
..
.storybook refactor 2025-09-01 09:50:36 +09:00
.vscode refactor 2025-08-26 14:38:42 +09:00
@types Feat: ドライブ周りのUIの強化 (#16011) 2025-05-21 07:31:24 +09:00
assets feat(frontend): 画像編集機能 (#16121) 2025-06-03 19:18:29 +09:00
lib refactor 2025-08-27 12:09:19 +09:00
public
src Fix dark mode sync not applying theme correctly on page load 2025-10-21 12:48:51 +00:00
test refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539) 2025-09-13 08:33:14 +09:00
.gitignore per-locale bundle & inline locale (#16369) 2025-08-08 11:26:18 +09:00
build.ts per-locale bundle & inline locale (#16369) 2025-08-08 11:26:18 +09:00
eslint.config.js refactor(frontend): improve pagination implementation 2025-06-29 15:11:25 +09:00
package.json fix(deps): update [frontend] update dependencies [ci skip] (#16684) 2025-10-21 11:06:25 +09:00
tsconfig.json enhance(frontend): glslを単独のファイルに分離 (#16665) 2025-10-20 15:23:19 +09:00
vite.config.ts enhance(frontend): glslを単独のファイルに分離 (#16665) 2025-10-20 15:23:19 +09:00
vite.json5.ts
vue-shims.d.ts