Greetings dear Discourse team and forum participants
I recently noticed that quick link to open the editor for a personal message is not compatible with the theme component Dark/Ligt Mode Toggle if I am using a smartphone with the Android operating system installed . To be more precise, when you click on the link, the message composer opens in a certain fraction of a second and collapses back into a draft. I checked all the theme components and plugins and found that the composer behaves this way only with the Dark/Ligt Mode Toggle component enabled on Android. Here’s a video:
In the video I showed 2 scenarios.
When you first click on the link, the composer quickly opens and at the same moment collapses.
When you click on the link again, the composer opens from the saved draft and after deleting the previous draft, the composer opens in normal mode.
That’s right. Once you include this theme component to your theme, save and refresh the page – and you should see the icon to toggle the dark/light mode.
I have to have a seperate “theme”? I’m using the default theme. I can toggle to dark mode like this
However the toggle only icon ONLY shows if I select “Dark” in preferences. I would like even first time visitors to see the moon icon bottom left. Possible?
Hello, I’m looking to set the Dark theme as the default on my Discourse forum. However, I also want to give users the option to switch to the Light theme if they prefer.
My question is: How can I ensure that the forum’s color scheme doesn’t automatically change based on the user’s system settings? I want it to stay on the Dark theme by default and only change to Light when a user manually selects it. Any guidance on setting this up would be greatly appreciated.
Thank you!
When setting everything up, if I have the light mode turned on, whenever I refresh the page, dark mode is always showing. Every single refresh, how can I stop this? @jordan-vidrine
After upgrading discourse to 3.2.0 I’m seeing these errors in the logs
Dark-Light Toggle theme/component is throwing errors:
TypeError: Cannot read properties of null (reading ‘en’)
Backtrace:
TypeError: Cannot read properties of null (reading 'en')
at Object.initialize (https://site.com/theme-javascripts/56ff324506efb7c3883ba59ee00cc753852ee8cc.js?__ws=site.com:5:51)
at n.initialize (https://site.com/assets/chunk.6d10396b901f5b95b67e.d41d8cd9.js:2:309459)
at https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141483
at e.each (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:368590)
at e.walk (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:367606)
at e.each (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:366959)
at e.topsort (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:367005)
at e._runInitializer (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141795)
at e.runInitializers (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141441)
at e._bootSync (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:110927)
at e.domReady (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:110503)
at invoke (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:358129)
at h.flush (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:357216)
at p.flush (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:358979)
at B._end (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:364062)
at B._boundAutorunEnd (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:360486)