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

should probably unify the colors of imenu-list-entry-subalist-face and menu-list-entry-face #95

Closed
ltmsyvag opened this issue Jan 4, 2024 · 1 comment

Comments

@ltmsyvag
Copy link

ltmsyvag commented Jan 4, 2024

Modus lover here!

The imenu-list face settings in modus-themes.el, namely:

modus-themes/modus-themes.el

Lines 2647 to 2654 in 5a777c3

`(imenu-list-entry-face-0 ((,c :foreground ,fg-heading-1)))
`(imenu-list-entry-face-1 ((,c :foreground ,fg-heading-2)))
`(imenu-list-entry-face-2 ((,c :foreground ,fg-heading-3)))
`(imenu-list-entry-face-3 ((,c :foreground ,fg-heading-4)))
`(imenu-list-entry-subalist-face-0 ((,c :inherit bold :foreground ,fg-heading-5 :underline t)))
`(imenu-list-entry-subalist-face-1 ((,c :inherit bold :foreground ,fg-heading-6 :underline t)))
`(imenu-list-entry-subalist-face-2 ((,c :inherit bold :foreground ,fg-heading-7 :underline t)))
`(imenu-list-entry-subalist-face-3 ((,c :inherit bold :foreground ,fg-heading-8 :underline t)))

set 8 different colors for 8 different imenu-list faces, but this is causing visual confusion. Because in fact, an imenu-list entry imenu-list-entry-subalist-face-<num> is at the same level as imenu-list-entry-face-<num> (they have the same <num> !), the only difference is that the former contains sub-entires.

The modus-vivendi colorization of imenu-list now looks like:
Screenshot 2024-01-04 at 18 05 53
which is confusing, because "Earth" is at the same level as Venus, but it has a different color. What's NOT confusing would look like below:
Screenshot 2024-01-04 at 18 03 21

Without modus-themes, the above is also the default behavior of imenu-list, which I produce below with a vanilla-ish emacs:
Screenshot 2024-01-04 at 18 28 39

@protesilaos
Copy link
Owner

Thank you @ltmsyvag! You are right. I don't remember why it was with eight colours before. Just made the change.

protesilaos added a commit that referenced this issue Jan 4, 2024
This is because the only difference between the two types of faces it
provides is whether the heading has a sublevel or not.

Thanks to ltmsyvag for pointing this out in issue 95 on the GitHub
mirror of the modus-themes: <#95>.
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