(edited to simplify the post/question)
The goal:
I want “dark mode” enabled by default - for the default theme. Sounds simple.
That’s really it - It’ll allow my Pi Kiosk to boot without manual intervention, so my wife sees the screen in the right mode right from the start - that’s the need.
“Dark mode” was introduced in release 114, and you can see the setting if you click on the user profile at the bottom left corner of any UI instance.
In that release note link above, I find wording that describes an external detection of a “dark mode” on the host device - but doesn’t describe what the mechanism is, or ‘what host devices that have dark mode’ are supported specifically:
We detect if your device is in dark mode; if that is the case, our default theme will go dark. You can override the automatic switching between dark and light theme in your profile.
Raspbian Lite has no dark/light mode, so there must be another way.
One means of that is shown here. Screenshot is from the release notes - I’m referencing the “auto, light, dark” radio buttons at the center:
This setting does not persist, however. Reboot the Pi, it launches back up in “Light mode”.
I’ve tried an automation script - I do have a “on startup” trigger that works (hopefully that’s client-side, not server-side), but can’t find any action target details on what to actually set, to switch to “Dark Mode”.
I honestly don’t care if it’s a server-side setting impacting all users, or a client side automation.
Installation details:
I have a Pi is in a 3.5" touchscreen case, and I’m taking advantage of this form factor to provide my (luddite) wife a control panel that she wished for on her end table.
The case also houses the Pi that is running HA, in a separate virtual space.
- Raspbian Lite
- Home Assistant Core
- X11/X windows, started in .bashrc script
- Chromium browser, started in .xinitrc script
- Using command line switches to start full screen, 65% zoom, no menus, scrollbars, etc.
- Displays the Lovelace panel I built for my wife, to fit this tiny screen.
It needs to just start up and be ready for her (or anyone) to use, without trying to poke open a 65% shrunk menu window and access the override in the screenshot above.