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

[Question] Can color variables be theme-dependent? #110

Open
AblatedSprocket opened this issue Aug 26, 2020 · 7 comments
Open

[Question] Can color variables be theme-dependent? #110

AblatedSprocket opened this issue Aug 26, 2020 · 7 comments

Comments

@AblatedSprocket
Copy link

Is it possible to customize company-quickhelp-color-background/foreground as theme faces? Or is there a better way to make these values theme-dependent?

@dgutov
Copy link
Member

dgutov commented Aug 26, 2020

Answer: yes, the two vars could be turned into one face instead.

Then company-quickhelp--show could look up the face's attributes at runtime, to pass to pos-tip-show.

@AblatedSprocket
Copy link
Author

Do you know how to link variables to faces in this way? Or any resources for how this flow would work? I'm not great with elisp and I don't know what the code would look like for this.

@dgutov
Copy link
Member

dgutov commented Aug 26, 2020

The change would just remove the vars and add the face, I think. Having it pick up existing color customization is possible, but probably more trouble than it is worth.

@AblatedSprocket
Copy link
Author

Now that I'm looking more at the repo, isn't there an open PR for this?

@dgutov
Copy link
Member

dgutov commented Aug 27, 2020

Actually, yes. It is close, but not exactly the same changes that I described above.

And it seems to be hung on an orthogonal issue.

@AblatedSprocket
Copy link
Author

AblatedSprocket commented Aug 28, 2020

Would you take a PR with just the face changes from the existing PR?

@dgutov
Copy link
Member

dgutov commented Aug 28, 2020

Sure.

15cm added a commit to 15cm/spacemacs-config that referenced this issue Jan 25, 2022
…llow theme

- company-quickhelp doesn't use face to pop-tip company-mode/company-quickhelp#110
- company-box supports quickhelp-string
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

2 participants