manateelazycat / awesome-tab

Emacs package to provide out-of-the-box configuration to use tabs.
384 stars 38 forks source link

set distant-foreground for faces #79

Closed AmaiKinono closed 4 years ago

AmaiKinono commented 4 years ago

解决了部分主题中出现 - - - - - 以及前景色偶尔比较诡异的问题。

原因看这里:

:distant-foreground

Alternative foreground color, a string. This is like :foreground but the color is only used as a foreground when the background color is near to the foreground that would have been used. This is useful for example when marking text (i.e., the region face). If the text has a foreground that is visible with the region face, that foreground is used. If the foreground is near the region face background, :distant-foreground is used instead so the text is readable.

由于部分主题给 header-line face 设置了这个属性,在 tab 的前景色接近背景色的时候它就会起作用,导致我们设置的 foreground 失效。

manateelazycat commented 4 years ago

谢谢!