Hmm, I cant seem to get this to happen. Sorry about that
Hello, can you merge translations Add Arabic translation by jermanuts ¡ Pull Request #37 ¡ discourse/discourse-color-scheme-toggle ¡ GitHub
Thanks for making it
Hi. Is there a reason that the dark mode doesnât stick when I refresh the page in my Chromium-based browser (not using Google Chrome) on my PC and a lot of times just does nothing when I click on it?
Itâs all setup correctly, but no idea why it wonât stick or toggle at all a lot of the times.
For some reason on my instance the button is not showing in the most left bottom corner:
vs Meta:
I have been trying this on a default theme with only this compoonent enabled, and no other custom CSS, am I missing something here?
Even in safe mode, with all plugins disabled and just the default theme + this component, the toggle button is not in the same place.
On another note, I see this issue happening on Meta, noticed this on my instance for a while now but figured it was just me)
This happens when the scheme is changed manually, and does not match the system scheme (as far as I can tell) - a refresh fixes it, but randomly the logo will revert to the âsystemâ color ignoring the manually changed mode through the button.
seems a bug when chrome in dark mode ?
(saw discussed above)
how to reproduce:
-
discourse 3.2.1
personal preference > color scheme: regular is a light theme, dark mode: same as regular -
chrome uses system theme (system auto switch to dark in the evening)
in the evening, when system switches to dark mode, chrome in dark mode too,
the switcher button does not work in the evening for the case above.
while, it works well in day time,
saw the discussion above, saying due to the preference sets dark mode to âsame as regularâ,
but why it could switch to dark mode in the day time ?
When entering another board after a toggle, the site logo temporarily doesnât change to match the toggled mode
Hi @eveyone can someone help me in how to add the toggle
iâm using this guide iâm not able to see the togle i already installed on my Theme so but that toggle is not showing anywhere no in header or footer?
Did you follow the instructions in the first post? Do you have 2 color schemes that can be choosen by users and did you configure a default dark color scheme?
I finally managed to fix this issue after hours of debugging. Deleting and installing Sidebar Theme Toggle solved it!
Might be helping someone out there, to avoid all your users to have to meddle with Interface settings I find that having the light mode default actually solve the toggle doing nothing (as well as for non logged in users).
4 posts were split to a new topic: Wrong logo appears in some cases when toggling dark/light mode
A post was split to a new topic: Problem with brand logo and automatic dark mode scheme
2 posts were split to a new topic: Dark mode selector background colors
Iâm sure that when i set my default scheme being dark mode this component doesnât working
There something can I do to keep my dark mode as default and allow my users switch to light mode fi them want?
Putting default to light and dark to dark, and after that users get what they are using in their devices as should? If an user uses light, that user is expecting to see light, not dark. And same thing with dark, of course. It is always good policy to respect userâs choises
But my default template must be dark mode my colours are and should dark and I wonât change this to ârespect my usersâ my template should be a style how I Imagine and just want offer light mode as a adicional option.
If this its not possible, its alright
So basically you want to break userâs settings because of what you want? I donât totally get the reason for that, because you have light palette too. And if your theme canât use it the issue is your design, not how Discourse handles light and dark mode, or if an user has different taste than you have.
Or did I misunderstand something
Quite many things can be done in Discourse. But Iâm quite sure that overdriving userâs settings in a device and still leaving option to overdrive what you as an admin and designer wants, would find out of the box.
Iâm sure someone who knows better will chime in.
My point is that donât do that. It is just bad desing and bad user experience.
Exatly!
My doubt itâs about some way to change to light mode awhile my template/style is dark
But let me tell ya to nevermind about it Iâll gonna try other way.
I can change the background image in my theme by adding to the CSS
is there a css selector I can use to have a different image for dark mode?
I have tried
body .dark {
background-image: url('https://www.myracedata.com/images/sebring.jpg');
background-repeat: repeat-y;
background-size: 100%;
}
I have dug thru the git repository for the component
Sorry Iâm new here
Andy