From e43facb62002e2e6913ebc39ba245edf0218a400 Mon Sep 17 00:00:00 2001 From: mrwnslz Date: Mon, 19 Oct 2026 10:16:36 +0200 Subject: [PATCH] =?UTF-8?q?docs/theme.md:=20Desktop-App=20l=C3=A4sst=20bei?= =?UTF-8?q?=20=E2=80=9EAutomatisch=E2=80=9C=20das=20System=20entscheiden?= =?UTF-8?q?=20(0.1.31)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- docs/theme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/theme.md b/docs/theme.md index 8290410..bf3bdeb 100644 --- a/docs/theme.md +++ b/docs/theme.md @@ -17,6 +17,10 @@ podcast-ui.css, feeds.js) and diora-desktop (desktop.css). answers that query from the app's own (dark) theme, not the system's: there the page asks `DioraNative.systemScheme()` ("dark" | "light") and the app calls `window.__dioraSystemScheme(scheme)` when the system switches (uiMode change, or on return). +* The desktop app (Electron) sets `nativeTheme.themeSource` to the scheme for a fixed choice + (title bar, scrollbars, form controls match) but leaves it on `"system"` for "auto", so + `prefers-color-scheme` there is the system's; the page tells it the choice along with the + scheme (`dioraDesktop.setTheme(scheme, choice)`, desktop 0.1.31). * E-ink mode (`html.nui-eink`) keeps its own black-on-white rules and ignores this. * The reader has its own themes; its default is now "Wie die App" (`readerSettings.theme = 'app'`): dark → reader dark, light → reader bright. Sepia, Dunkel and Hell stay choosable.