Bug(s) with color palettes and light/dark mode switcher

Sorry, I’m reposting this, because I was trying to set a bookmark on my original bug report, but I accidentally clicked on the trash can icon. I’m unable to restore the other topic, so I’m pasting the content here.


I think this is a bug(s).

Summary:

  • Unwanted color palettes spontaneously re-active when the forum is rebuilt.
  • I can’t seem to get the default color palettes working for existing users. There should just be “Light Mode” and “Dark Mode” and users should have those automatically set.
  • “Set color palette on all my devices” only appears for some users (see the screenshots for item #8).
  • Some users can’t see the light/dark mode switcher (item #9 in the list below).

Details:

  1. Until yesterday, the forum had two themes: one light theme and one dark theme.
  2. I combined them into one theme that has two color schemes (“Light Mode” and “Dark Mode”).
  3. I made all the old themes and color schemes unavailable to users, so there are only those two color scheme available to users, and just the one new theme.
  4. I enabled the theme-switching button in the navbar.
  5. Whenever I rebuild the forum, two more color schemes become enabled: Horizon and Horizon Dark. I’m sure that I disabled them, because I’ve tested it multiple times by disabling them and then rebuilding. They always get re-enabled on rebuild. The latest Discourse version I’ve tested it with is 3.5.0.beta9-dev (04dbc622ab). Screenshot below.
  6. Side note: when I go to disable the two Horizon palettes, I uncheck the box, save the setting and then go back to the palettes page. The palette that I uncheck doesn’t show as disabled in the list until I do a hard refresh of the color palettes page. I’m not sure if this is a separate bug.
  7. Once the Horizon palettes self-enable, the users’ settings pages look like in the screenshot below where the “Dark mode” select box is set to “Same as regular” when it should be set to “Dark Mode”, the color palette. The “Regular” select box is correctly set to “Light Mode”, but it also makes the two unwanted Horizon palettes available.
  8. After I disable the two Horizon palettes again, some users can see the light/dark mode button in the navbar and others can’t.
  9. Also, if the light/dark mode toggle is set to “light” and I change the color palette to “dark” in the user settings (/my/preferences/interface), it will flip back to light when the page reloads. There’s no indication that after switching color palette in settings that the page needs to be saved. When I do save it and reload, the light/dark mode switcher in the navbar disappears.

If you have trouble reproducing it, I can send you a link to the forum (privately) and/or screenshare.

Screenshots

Item #5

Here are the two Horizon palettes that re-enable themselves every time the forum is rebuilt:

Item #7

This is after the two Horizon palettes spontaneously enable themselves. I wrote the captions before I realized that the Horizon color palettes were spontaneously re-enabling themselves.

Item #8

These are screenshots set by users after the Horizon palettes are removed.

This user can see the light/dark mode switching button in the top navbar:

This user can’t see the light/dark mode switcher in the top navbar, and a checkbox is missing:

Additional settings for reference: