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
Lemmy doesn't display light themes correctly #570
Comments
Lemmy initially loads darkly, then unloads it, and replaces it with whatever theme you have. The fact that it works fine on FF, Qutebrowser, Chrome, even android browsers, should tell you that this is an issue with palemoon, not lemmy. Here's the code if the palemoon devs are interested:
|
I'm sorry but the Please be more browser-agnostic in the way you switch themes. I suggest avoiding any and all |
Palemoon is the odd one out here, looks like all browsers support this. Here's mozillas spec: https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled |
MDN documentation is not a spec. Ultimately it's your decision of course to use something that's not standard. All I can do is ask that you please don't -- which I now have. |
You know that is a recent draft right?, so you are using features that are not yet even considered standard just because main known engines (chrome, edge and opera are the same) implemented it??
Using stylesheets with that specification in every declaration is misrecommended at professional level and even learning level. it is common when you have a lot of css and have to deal with a lot of legacy css code mostly but this is not a wordpress child theme, this is just Lemmy... |
If you have another way to load a different theme on the page, without refreshing it, and without using css disabled, I'm all ears. |
Idk about Lemmy source code but would be Invidious way to change theme valid for the use case? They have just a toggle switch calling a function which saves the information in the localStorage (i think is for maintaining it after reloading if the user do it) to change the theme in the same moment without reloading and css disabled. When reloading the info seems to be saved in a not displayed span but that is out of scope about my knowledge. |
https://github.com/iv-org/invidious/blob/master/assets/js/themes.js is the exact code |
PRs welcome. |
On Palemoon 28.8.3, comments and body text is vrey bright, making it unreadable on light background.
On Firefox 73.0.1 it displays correctly.
Images and conversation is in the link: https://dev.lemmy.ml/post/30957
The text was updated successfully, but these errors were encountered: