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:
Until yesterday, the forum had two themes: one light theme and one dark theme.
I combined them into one theme that has two color schemes (“Light Mode” and “Dark Mode”).
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.
I enabled the theme-switching button in the navbar.
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.
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.
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.
After I disable the two Horizon palettes again, some users can see the light/dark mode button in the navbar and others can’t.
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:
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.
אני מסוגל לשחזר את הבעיה שבה ערכות הצבעים Horizon ו-Horizon Dark מופעלות מחדש אוטומטית לאחר בנייה מחדש של אתר, אז רשמתי באג עבור זה. נתקן את זה בהקדם האפשרי.
מלבד ההשפעות המתגלגלות מהבאג הזה, שאר הדברים שציינת נראים קשורים להגדרה default dark mode color scheme id. החדשות הטובות הן שיש לנו עדכון בעבודה שמעביר את ההגדרה הזו לתוך הערכה שלך - זה הופך אותה להרבה יותר שמישה, קלה למציאה, ופחות מועדת לחוסר עקביות כמו זו. אנו מתכננים למזג את העדכון הזה במהלך 24 השעות הקרובות, ויהיה לנו הודעה ומסמכים כדי לספק פרטים נוספים. אחזור לכאן ברגע שזה יהיה פעיל, ואז תוכל לבדוק זאת כדי לראות אם זה פותר את הבעיות הללו עבורך.
אנו נתקלים בבעיות דומות עם ערכות נושא ופלטות צבעים מותאמות אישית. אנו משתמשים גם בשתי ערכות נושא (אחת בהירה ואחת כהה, אך אנו שואפים לאחד אותן בעתיד)
אם נבחרת ערכת הנושא הבהירה, ערכת הנושא הבהירה תופיע רק אם “ערכת הצבעים של ערכת הנושא המוגדרת כברירת מחדל נבחרת בבחירה הנפתחת של מצב כהה והבחירה הנפתחת של המצב מוגדרת ל"בהיר”. אם המשתמש בוחר “אוטומטי” או מצבים כהים, ערכת הצבעים של ערכת הנושא משתנה למצב כהה.
I’m not sure if this is a bug, but I changed the names of the color palettes in the "color_schemes" field in the about.json file. That caused the settings for “Color Palette” and “Dark Color Palette” to change to integers (maybe the IDs of missing color palettes?).
I took this screenshot after selecting the new color palette names, but it was on this screen:
After making both palettes selectable, it seems like if the user sets their Color Palette to the default palette, the light/dark mode selector will be shown. If they change the color palette to the dark mode palette, the light/dark mode selector disappears.
The “Default dark mode color scheme ID” setting now appears to be missing in my site settings. I’m not sure if it was removed from Discourse. It was here in an older screenshot from above: