larstvei / Focus

Dim the font color of text in surrounding paragraphs
470 stars 14 forks source link

Face that `focus-unfocused` inherits from #27

Closed phikal closed 2 years ago

phikal commented 2 years ago

Hi,

currently focus-unfocused inherits from font-lock-comment-face which I get but might be suboptimal. E.g. consider when focusing on a defun, and the defun begins with a comment. Then the "unfocused" regions and the comment have the same color which might make it harder to draw a line when the comment is longer.

What do you think about inheriting from shadow, which might be the semantically more accurate face to use, since the intention is to "dim" the unfocused parts of the buffer?

larstvei commented 2 years ago

Yes, I completely agree! I simply was not aware of shadow face, which is a way better fit!

Thanks!