Feat: system theme live update (#6197)

* fix: restore fixed render mode for logs tab

* feat: react to system theme changes in real time

When the 'System' theme is selected, listen for OS-level
prefers-color-scheme changes and update the app theme immediately,
without requiring a restart.

* Apply suggestion from @IMB11

Signed-off-by: Calum H. <hendersoncal117@gmail.com>

---------

Signed-off-by: Calum H. <hendersoncal117@gmail.com>
Co-authored-by: Calum H. <hendersoncal117@gmail.com>
Co-authored-by: Calum H. <calum@modrinth.com>
This commit is contained in:
L4stIdi0t
2026-06-11 13:32:15 +00:00
committed by GitHub
co-authored by Calum H. Calum H.
parent 7d15fd3ac0
commit 36423eb5b5
2 changed files with 11 additions and 9 deletions
-1
View File
@@ -248,7 +248,6 @@ export default new createRouter({
component: Instance.Logs,
meta: {
useRootContext: true,
// renderMode: 'fixed',
breadcrumb: [{ name: '?Instance', link: '/instance/{id}/' }, { name: 'Logs' }],
},
},