Treemacs: Different background color for treemacs?

Created on 10 Jul 2019  路  7Comments  路  Source: Alexander-Miller/treemacs

I'd love to have treemacs (the whole sidebar) having a different color than the rest of my theme. Is it planned to be implemented?

New Feature UI

Most helpful comment

Actually, I got the effect I wanted with solaire-mode, now I got something like this:

screenshot3

All 7 comments

I don't think its naturally possible with how buffers get their colors. I think treemacs would need to have its own default face which other theme authors can customize. Also I think treemacs would need to paint the whole window.
https://stackoverflow.com/questions/4532024/different-color-themes-per-mode-in-emacs

Gotcha, i've come across that link too when researching for this topic. Since it doesn't feel like something that can directly be actionable by Treemacs contributors, I'll close this issue.

Btw. I love this package a bunch! Great job mate.

Actually it might be possible via face remapping. Something like this could do the trick:

(with-current-buffer (treemacs-get-local-buffer)
  (setq-local face-remapping-alist
              '((default . (:background "#1d1d1d")))))

I just need to pack it into a proper mode and make sure I correct some other faces manually as well.

Actually, I got the effect I wanted with solaire-mode, now I got something like this:

screenshot3

Actually it might be possible via face remapping. Something like this could do the trick:

(with-current-buffer (treemacs-get-local-buffer)
  (setq-local face-remapping-alist
              '((default . (:background "#1d1d1d")))))

I just need to pack it into a proper mode and make sure I correct some other faces manually as well.

i done ,but when I restart ,it is errored (void-function treemacs-get-local-buffer)

@354651432 See my answer in #732. The code here is also just a basic proof of concept, not even close to a proper solution. If this is a feature you really want right now you can use solaire-mode as @ianpan870102 suggested.

treemacs-window-background-color is in now.

Let me know if I've forgotten to recolor something.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dustinlacewell picture dustinlacewell  路  4Comments

Alexander-Miller picture Alexander-Miller  路  12Comments

fiveNinePlusR picture fiveNinePlusR  路  12Comments

ianpan870102 picture ianpan870102  路  4Comments

zentetsukenz picture zentetsukenz  路  12Comments