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

Fontaine causes mode-line to lose styling #15

Open
duien opened this issue Jan 25, 2025 · 4 comments
Open

Fontaine causes mode-line to lose styling #15

duien opened this issue Jan 25, 2025 · 4 comments

Comments

@duien
Copy link

duien commented Jan 25, 2025

Since the change to using a custom theme for fontaine's implementation, I'm running into an issue with styling of the mode line. I'm using Emacs 30, but the issue appears to affect 29 as well.

By default, the mode-line-active face inherits from mode-line and that's the only styling it receives. That's also true in a lot of themes, since the face was only introduced in 29. Once that face is touched by a custom theme, the default styling is removed and only the styling from the theme is applied, meaning that the active mode-line loses all styling as soon as a fontaine preset is applied.

This doesn't affect the modus or ef themes, since they style mode-line-active explicitly, but for any theme that doesn't (or when no theme is applied) the mode-line becomes basically invisible. The mode-line is the most noticeable thing, and the one that often persists after setting a theme, but the same issue appears to affect other faces -- I noticed it on line-number as well.

No theme, before loading fontaine:

Image

After loading fontaine:

Image
@protesilaos
Copy link
Owner

protesilaos commented Jan 25, 2025 via email

@protesilaos
Copy link
Owner

protesilaos commented Jan 25, 2025 via email

protesilaos added a commit that referenced this issue Jan 25, 2025
This is in response to a bug reported by Emily Hyland in issue 15:
<#15>. The change I am
making does not fix the problem, but still seems like the right thing
to do in general.
@duien
Copy link
Author

duien commented Jan 27, 2025

Thank you so much for the quick fix! I updated this morning, and it everything seems to be working great!

@protesilaos
Copy link
Owner

protesilaos commented Jan 28, 2025 via email

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

2 participants