-
Notifications
You must be signed in to change notification settings - Fork 163
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
how is the light/dark detection supposed to work? #273
Comments
What I'm trying to accomplish is as follows: If the user is using a theme with In an ideal world, this would update automatically when the user switches themes (unless the theme defines the face), but that was problematic (see #241). I'm can't tell for sure, but here is my guess at what's happening: since I'm stumped on the best way to handle this. I couldn't find a built-in face that was suitable, but if themes don't define it (and I figured most wouldn't, at least not at first) I wanted a reasonable default. Nice themes, by the way. I will try them out! |
I'm using alect-themes (specifically the There doesn't seem to be anything in the theme setting |
I'm getting the same blinding white background in inlined code after updating from Stylistically I'm not convinced that markdown-mode should be touching colors at all in this situation; enforcing monospace seems perfectly sufficient. Maybe if the color wasn't so intrusive (e.g the massive contrast of a white background in a dark theme) I'd feel differently. |
To be clear, the intention is not white background for code in a dark theme—I agree that’s awful. The issue seems to be when switching from a light to dark theme when the dark theme doesn’t define the face (or vice versa). |
I experienced this issue without theme switching, merely by having a dark theme without this new face defined. |
That's unexpected. Which theme may I ask? |
Theme is eigengrau |
given the trouble that this is causing, could you perhaps turn off the colour detection and just rely on the face being provided by the theme? If specific themes are broken then maybe they could just be updated to support markdown mode? |
Thanks, @daveliepmann. I can't reproduce the issue with eigengrau. For me, I get a subtle change in the background color for code blocks as expected (see the screenshot).
I've only seen the issue when first using a light theme, at which point |
Does this mean that if I call |
I think you nailed it @ivan-m, thanks. For example, when I switch around the load order in my eigengrau example above, I do indeed get the light background:
|
@fommil I'm not opposed to removing it if needed--I just hoped to somehow fix it instead. Some background on this for those interested: I originally tried updating Does anyone perhaps know how other packages handle updating background colors like this? |
If the user changes the theme I think there are sufficiently many bugs in every emacs package that a |
Hi, I'm the author of these two themes
I can't work out how your light / dark detection is supposed to work, but I do know that it never works for me...
e.g. I still get this in the dark theme
note that the background is white here, which is not at all what I want. Rather than overriding this manually, is it possible that either
I'd prefer the latter.
The text was updated successfully, but these errors were encountered: