#105134Enhance color switcher to a smart toggle w/ advanced options
Description
Implement a color-scheme toggle button, that toggles between light
and dark color scheme, but takes “auto” into account by toggling
based on the auto-detected (dark/light) mode, when current mode is auto.
Additionally an expander is added, in order for all options
(including auto-detect) to be selectable within the user toolbar menu.
We have noticed that technical and subjective labels like “OS default“
or “User agent preference” are not perceived very well.
Therefore we removed “OS Default” from the toolbar in #104942.
Now this rather unintuitive option was gone from the user toolbar –
which was good for users that just wanted to toggle – but bad for power
users that like to enable “auto”, but found it hard to discover the
auto option withing the user settings tab “Backend appearance”.
Therefore the switcher now has an embedded advanced mode, where the
the “auto” item is available again and the label is combined of
“Auto detect” and the (auto detected) mode that it will be changed to.
The advantage is that there is less surprise when clicking auto detect,
when switching from “Dark mode” to “Auto detect (Dark mode)” or from
“Light mode” to “Auto detect (Light mode)”.