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

How to custom vterm theme #116

Closed
vhtq18w opened this issue Aug 7, 2019 · 5 comments
Closed

How to custom vterm theme #116

vhtq18w opened this issue Aug 7, 2019 · 5 comments

Comments

@vhtq18w
Copy link

vhtq18w commented Aug 7, 2019

EMACS VERSION: 26.2
I read the README, set following configuration, but it not active.

(defconst dracula-background "#282a36")
(defconst dracula-curren-line "#44475a")
(defconst dracula-selection "#44475a")
(defconst dracula-foreground "#f8f8f2")
(defconst dracula-comment "#6272a4")
(defconst dracula-white "#bfbfbf")
(defconst dracula-black "#000000")
(defconst dracula-cyan "#8be9fd")
(defconst dracula-blue "#caa9fa")
(defconst dracula-green "#50fa7b")
(defconst dracula-orange "#ffb86c")
(defconst dracula-pink "#ff79c6")
(defconst dracula-purple "#bd93f9")
(defconst dracula-red "#ff5555")
(defconst dracula-yellow "#f1fa8c")
(defconst dracula-magenta "#ff79c6")

(setq vterm-default-fg 'dracula-foreground
      vterm-default-bg 'dracula-background
      vterm-black-fg 'dracula-black
      vterm-red-fg 'dracula-red
      vterm-green-fg 'dracula-green
      vterm-yellow-fg 'dracula-yellow
      vterm-blue-fg 'dracula-blue
      vterm-magenta-fg 'dracula-magenta
      vterm-cyan-fg 'dracula-cyan
      vterm-white-fg 'dracula-white)

And then, I notice #58 maybe help me, I copy this config, but it also not active.

What should I do?

@jixiuf
Copy link
Collaborator

jixiuf commented Aug 7, 2019

purcell/color-theme-sanityinc-solarized#27
I am trying to custom term theme for /color-theme-sanityinc-solarized
hope this is helpful

@vhtq18w
Copy link
Author

vhtq18w commented Aug 7, 2019

I use dracula-theme, it's color definitions like as it. It different with color-theme-sanityinc-solarized. I try add some code:

(vterm-color-black :foreground ,bg3 :background ,bg3)
(...)

It not activate.
So `ansi-color-names-vector' is necessary?

@jixiuf
Copy link
Collaborator

jixiuf commented Aug 7, 2019

ansi-color-names-vector is not necessary ,
may be you need restart your emacs after you custom the theme

@vhtq18w vhtq18w closed this as completed Aug 10, 2019
@vuquangtam
Copy link

For those using theme bbatsov/solarized-emacs

(solarized-with-color-variables 'dark
          (custom-set-faces
           `(vterm-color-default ((t (:foreground nil :background nil :inherit default))))
           `(vterm-color-black   ((t (:foreground ,base02 :background ,base03))))
           `(vterm-color-blue    ((t (:foreground ,blue :background ,base0))))
           `(vterm-color-cyan    ((t (:foreground ,cyan :background ,base1))))
           `(vterm-color-green   ((t (:foreground ,green :background ,base01))))
           `(vterm-color-magenta ((t (:foreground ,magenta :background ,violet))))
           `(vterm-color-red     ((t (:foreground ,red :background ,orange))))
           `(vterm-color-white   ((t (:foreground ,base2 :background ,base3))))
           `(vterm-color-yellow  ((t (:foreground ,yellow :background ,base00))))
           )
          )

@vhtq18w
Copy link
Author

vhtq18w commented Aug 14, 2019

Thx. Now I use doom-dracula, I copy it's color definition, this work fine.

color define in this line.
vterm face define in this line.

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

3 participants