Closed gonewest818 closed 4 years ago
I was able to reproduce this without dimmer
active at all. The problem lies in the darkburn theme. darkburn
re-defines a face named persp-selected-face
to highlight the text in the modeline. The definition of that face is
`(persp-selected-face ((t (:foreground ,darkburn-yellow-2 :inherit mode-line))))
The :inherit mode-line
suggests the background color is meant to match whatever the modeline says. However, there is also a mode-line-inactive
face which uses a darker background for any window that isn't active. And this is the problem, because this face can't adjust when it is used in an inactive modeline. So even when dimmer
is not used, you can see this highlighting looks wrong when you split the frame into two windows.
Workaround is to override persp-selected-face
and just remove the :inherit mode-line
attribute:
(use-package darkburn-theme
:ensure t
:init
(load-theme 'darkburn t)
(darkburn-with-color-variables
(custom-theme-set-faces
'darkburn
`(persp-selected-face ((t (:foreground ,darkburn-yellow-2)))))))
Arguably this could be fixed upstream in the theme as well.
This issue came up in discussion at the Emacs SF user group. When using the
perspective
package and thedarkburn
theme, the part of the modeline that shows which perspective you are using doesn't look correct when dimmed. In particular, the name of the selected perspective seems to get the wrong color.Here's the repro (see this article for an explanation)