A listener registered with addColorSchemeListener is told only the scheme being applied, light or dark, so an auto selection is indistinguishable from whichever scheme the system resolves it to. A light, dark and auto control needs the selected mode as a second argument in order to show the right option, without affecting listeners that take a single argument.
A listener registered with
addColorSchemeListeneris told only the scheme being applied,lightordark, so anautoselection is indistinguishable from whichever scheme the system resolves it to. A light, dark and auto control needs the selected mode as a second argument in order to show the right option, without affecting listeners that take a single argument.