misskey/packages/frontend/src
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
..
aiscript fix(frontend/aiscript): Mk:toastを同期関数に変更 (#16480) 2025-10-09 11:30:34 +09:00
boot Fix dark mode sync not applying theme correctly on page load 2025-10-21 12:48:51 +00:00
components enhance(frontend): 下書き/予約投稿一覧は投稿フォームのアカウントメニュー内に移動し、下書き保存は「...」メニュー内に移動 2025-10-21 20:03:57 +09:00
composables feat(frontend): Video compression (#16574) 2025-09-24 09:01:06 +09:00
directives refactor(frontend): カスタムディレクティブの型付け (#16659) 2025-10-19 11:36:00 +09:00
filters enhance(frontend): 投稿フォームの設定メニューを改良 (改) 2025-03-16 17:48:16 +09:00
lib refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539) 2025-09-13 08:33:14 +09:00
pages enhance: リモートユーザーのロールバッジを表示するかどうかをサーバー管理者が設定できるように (#16661) 2025-10-16 22:45:37 +09:00
preferences enhance(frontend): 実験的機能としてTranslator APIを用いた翻訳を実装 (#16600) 2025-10-05 15:43:13 +09:00
shaders enhance(frontend): glslを単独のファイルに分離 (#16665) 2025-10-20 15:23:19 +09:00
types refactor 2025-08-26 17:31:36 +09:00
ui enhance(frontend): 下書き/予約投稿一覧は投稿フォームのアカウントメニュー内に移動し、下書き保存は「...」メニュー内に移動 2025-10-21 20:03:57 +09:00
unicode-emoji-indexes enhance: support emojis added in Unicode 16.0 or earlier (#16329) 2025-08-01 22:26:29 +09:00
utility enhance(frontend): glslを単独のファイルに分離 (#16665) 2025-10-20 15:23:19 +09:00
widgets fix(frontend): 存在しない翻訳を修正 (#16604) 2025-10-06 10:06:20 +09:00
workers perf(frontend): draw-blurhash workerの結果をpostMessageする際にImageBitmapを移譲する (#16330) 2025-07-30 09:30:07 +09:00
_boot_.ts enhance: verify-emailにフロントエンドUIを実装 (#16431) 2025-08-21 16:52:30 +09:00
accounts.ts enhance(frontend): 下書き/予約投稿一覧は投稿フォームのアカウントメニュー内に移動し、下書き保存は「...」メニュー内に移動 2025-10-21 20:03:57 +09:00
analytics.ts feat: google analytics (#15451) 2025-02-25 11:51:23 +00:00
cache.ts enhance(frontend): クリップ/リスト/アンテナ/ロール追加系メニュー項目において、表示件数を拡張 2025-09-06 11:18:08 +09:00
custom-emojis.ts refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
debug.ts refactor(frontend): verbatimModuleSyntaxを有効化 (#15323) 2025-02-05 10:01:44 +00:00
deck.ts fix: カラムの名前が正しくリスト/チャンネルの名前にならない問題 (#15987) 2025-08-09 10:43:07 +09:00
di.ts perf(frontend): use css-native implementation for spacer rather than vue component 2025-04-27 19:55:56 +09:00
drag-and-drop.ts enhance(frontend): テーマをドラッグ&ドロップできるように 2025-09-26 15:36:25 +09:00
events.ts refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539) 2025-09-13 08:33:14 +09:00
i.ts refactor(frontend): signinRequired -> ensureSignin 2025-03-16 19:04:14 +09:00
i18n.ts per-locale bundle & inline locale (#16369) 2025-08-08 11:26:18 +09:00
index.mdx build(#10336): Storybook & Chromatic & msw (#10365) 2023-04-04 09:38:34 +09:00
instance.ts refactor 2025-09-01 12:59:53 +09:00
local-storage.ts per-locale bundle & inline locale (#16369) 2025-08-08 11:26:18 +09:00
memory-storage.ts enhance(frontend): コントロールパネルのユーザ検索で入力された情報をページ遷移で損なわないように (#15438) 2025-02-26 07:28:35 +00:00
navbar.ts feat(frontend): 自分のプロフィールページの二次元コード(QRコード)を表示し、他の人のコードを読み取りするページを追加 (#16456) 2025-09-19 21:02:30 +09:00
os.ts feat: scheduled post (#16577) 2025-09-26 15:29:52 +09:00
page.ts 🎨 2025-03-18 17:31:25 +09:00
plugin.ts refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539) 2025-09-13 08:33:14 +09:00
pref-migrate.ts refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539) 2025-09-13 08:33:14 +09:00
preferences.ts refactor(frontend/pref): refactor preferences manager 2025-06-26 16:25:43 +09:00
router.definition.ts feat(frontend): 自分のプロフィールページの二次元コード(QRコード)を表示し、他の人のコードを読み取りするページを追加 (#16456) 2025-09-19 21:02:30 +09:00
router.ts enhance(frontend): typed nirax (#16309) 2025-07-30 12:30:35 +09:00
server-context.ts lint fixes 2025-03-20 19:00:09 +09:00
signout.ts fix(frontend): 自動バックアップが設定されていない環境では設定が消滅する旨の警告を出すように (#15802) 2025-04-13 16:59:01 +09:00
store.ts refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539) 2025-09-13 08:33:14 +09:00
stream.ts lint fixes 2025-03-20 19:00:09 +09:00
style.scss perf(frontend): tweak css performance 2025-08-03 10:01:25 +09:00
tab-id.ts enhance(frontend): IDにUUIDを使うのをやめる (#16138) 2025-06-03 07:31:19 +09:00
theme.ts refactor 2025-08-26 20:17:25 +09:00
timelines.ts enhance(frontend): improve accounts management 2025-03-13 22:12:23 +09:00
tips.ts enhance(frontend): 投稿フォームにアップローダーを埋め込み (#16173) 2025-06-07 07:47:43 +09:00
type.ts chore: add missing SPDX ID and workflow check (#13570) 2024-03-13 22:37:18 +09:00