Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to change the Theme mode (Auto, Light & Dark)? #91

Open
avenom opened this issue Apr 29, 2022 · 4 comments
Open

Where to change the Theme mode (Auto, Light & Dark)? #91

avenom opened this issue Apr 29, 2022 · 4 comments
Assignees

Comments

@avenom
Copy link

avenom commented Apr 29, 2022

Can't find

@LeBaronDeCharlus
Copy link

On gokarna/static/js/main.js file, change line 69 from :

69     darkThemeCss.disabled = themeToSet === 'light';

to

69     darkThemeCss.disabled = themeToSet === 'dark';

@526avijitgupta
Copy link
Member

Hey @avenom thanks for reporting. We are working on this

^For now you can follow @Kaderovski 's solution

@yashmehrotra yashmehrotra self-assigned this May 29, 2022
@jamesericdavidson
Copy link
Contributor

It's worth noting that the solution in @Kaderovski's comment can cause colour inversion - a browser configured to use Dark mode will use the Light theme.

Maybe that's what this issue was created for, but if you are intending to hard code Dark theme regardless of browser settings, this solution won't fit your use case.

@ramonsuarez
Copy link

This has been implemented on line 125 of the main.js file that Kaderowski mentioned. change to dark theme as default:
darkThemeCss.disabled = themeToSet === 'dark';

jamesericdavidson added a commit to jamesericdavidson/jamesdavidson.xyz that referenced this issue Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants