Warren Halderman
unread,Oct 23, 2025, 6:08:06 PM (17 hours ago) Oct 23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Oliver Dunk, Chromium Extensions, Warren Halderman
Hi Oliver,
I'm certainly walking on thin ice by using an undocumented API. 🙂
Yes, the main issue is that selecting "light" returns "default" in the handler, but the "default" theme does *not* always map to "light" -- it maps to whatever the OS preference is.
OS-level "dark" color scheme preference:
- (Devtools option) -> (theme passed to handler)
- "default" -> "dark"
- "light" -> "default" (so, "dark"?...)
- "dark" -> "dark"
OS-level "light" color scheme preference:
- "default" -> "default"
- "light" -> "default" (although inaccurate, this works since the OS is set to "light" as well)
- "dark" -> "dark"
Although updating the documentation is fine, I think there's a valid issue in the code with "light" returning "default" and not "light"
It's also possible I'm doing something incorrectly, and if so, please let me know!
In any case, thank you for your help!