How do you switch from dark to light themes via the command line in 24.04?

Running 24.04 in VirtualBox.
I notice that changes made via dconf editor do not survive a reboot.
I changed key /org/gnome/desktop/interface/color-scheme to ‘prefer-light’ and after a reboot it reverts to ‘prefer-dark’[.

If its just that key, the dark theme key is now set by

com.solus-project.budgie-panel dark-theme=true

Sorry, that did not work. I prefer “light” in my apps. So, under 22.04 I set the key color-scheme to ‘prefer-light’.

OK, using gsettings set org.gnome.desktop.interface color-scheme ‘prefer-light’
worked. So, the problem is the dconf-editor application.

useful tip

run

dconf watch /

then in budgie desktop settings flip the dark theme checkbox from tick to not ticked. You can see what budgie desktop settings is fiddling with in terms of dconf.

So when I did this I saw it fiddled with both /com/solus-project/budgie-panel/dark-theme as well as /org/gnome/desktop/interface/color-scheme

So if you are poking stuff manually to switch from dark to light (or visa-versa) you’ll similarly have to tweak both gsettings keys.