-
Notifications
You must be signed in to change notification settings - Fork 31
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
[Question] How to update modeline when switching themes? #63
Comments
I think the problem is quite generic and the solution you've found seems to be the "official" one:
The reason might be that some theme do not modify everything (nor does nano-modeline) such that if a theme modify something that is not overwritten by the new theme, it will remains as it is (i.e. from previous theme) |
Thank you for the response! Seems like it is indeed a question of what things the new theme modifies when switching. I also noticed that the nano themes do in fact change the colour of the modeline, so when I want to switch to a theme that doesn't update the modeline colour, so a hacky solution is to always change to a nano theme before changing to a different theme. E.g., to change from |
Did you try |
That's interesting! When I switch from Putting |
Hum, maybe I set some settings without using the custom machinery, that may explain things. I need to have a closer look at the sources. |
Thank you for looking into this, I appreciate it! |
Ok, now I remember: #54 |
A workaround that works for me is to explicitly reset nano-modeline-active face to its default value after switching themes:
|
Thanks for the fix. By the way, I've been working on a new branch (rewrite) that simplify things but in the meantime there is no more active/inactive faces. |
Hi,
I have an issue where the colour of the modeline does not update when switching themes.
Here is a screenshot of the theme I use on start-up, the
doom-nord
theme.And here is a screenshot after switching to
ef-maris-light
, where the modeline retains thedoom-nord
colours.This problem is persistent with all themes. For instance, if I use
ef-maris-light
on start-up and switch todoom-nord
, thendoom-nord
will have aef-maris-light
-coloured modeline.I had some issues with lingering borders when switching themes, so in my configuration, I have this code snippet that advices
load-theme
to always disable the current theme when switching themes. This has resolved the issue for borders and other UI elements, such as source code blocks in Org-documents, but does not seem to affect nano-modeline. Removing this snippet also does not resolve the nano-modeline issue.I would really appreciate any help! My full config is also available https://github.com/SophieBosio/.emacs.d.
The text was updated successfully, but these errors were encountered: