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

Missing support for combobulate #108

Closed
DamienCassou opened this issue Jun 11, 2024 · 5 comments
Closed

Missing support for combobulate #108

DamienCassou opened this issue Jun 11, 2024 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@DamienCassou
Copy link

combobulate introduces some faces that I'm sure look nice on @mickeynp's configuration, but are unreadable on modus-operandi. This is how combobulate-query-highlight-serene-shade-face looks for me for example when combined with hl-line:

image

Here is how it looks on a non-active line:

image

@protesilaos
Copy link
Owner

Hello @DamienCassou!

I thought combobulate was not widely available yet because there is no package for it. Anyway, I am happy to add support for it, though I need a way to test it. What languages do you use it for and is there anything in particular I need to set up for it?

@DamienCassou
Copy link
Author

DamienCassou commented Jun 11, 2024 via email

@protesilaos
Copy link
Owner

protesilaos commented Jun 21, 2024 via email

@protesilaos
Copy link
Owner

Hello @DamienCassou!

There is a lot to learn with this package, as I am not familiar with the intended workflow. Anyway, I put together some styles based on how the original faces looked and what their documentation described. Some may need to be reviewed. Here is what you can try:

(modus-themes-with-colors
  (custom-set-faces
   `(combobulate-active-indicator-face ((,c :foreground ,fg-main)))
   `(combobulate-dimmed-indicator-face ((,c :inherit shadow)))
   `(combobulate-error-indicator-face ((,c :inherit error)))
   `(combobulate-query-highlight-fiery-flames-face ((,c :inherit modus-themes-intense-red)))
   `(combobulate-query-highlight-gleaming-gold-face ((,c :inherit modus-themes-intense-yellow)))
   `(combobulate-query-highlight-majestic-mercury-face ((,c :inherit modus-themes-intense-cyan)))
   `(combobulate-query-highlight-mysterious-mauve-face ((,c :inherit modus-themes-intense-magenta)))
   `(combobulate-query-highlight-radiant-rind-face ((,c :inherit modus-themes-subtle-red)))
   `(combobulate-query-highlight-regal-ripples-face ((,c :inherit modus-themes-intense-blue)))
   `(combobulate-query-highlight-serene-shade-face ((,c :inherit modus-themes-subtle-green)))
   `(combobulate-query-highlight-silver-shadows-face ((,c :background ,bg-active :foreground ,fg-main)))
   `(combobulate-query-highlight-vibrant-veggie-face ((,c :inherit modus-themes-intense-green)))
   `(combobulate-query-query-anonymous-face ((,c :inherit modus-themes-bold :foreground ,fg-alt)))
   `(combobulate-query-query-builtin-face ((,c :inherit font-lock-builtin-face)))
   `(combobulate-query-query-constant-face ((,c :inherit font-lock-constant-face)))
   `(combobulate-query-query-doc-markup-face ((,c :inherit font-lock-doc-markup-face)))
   `(combobulate-query-query-keyword-face ((,c :inherit font-lock-keyword-face)))
   `(combobulate-query-query-predicate-builtin-face ((,c :inherit bold)))
   `(combobulate-query-query-string-face ((,c :inherit font-lock-string-face)))
   `(combobulate-refactor-choice-face ((,c :inherit modus-themes-slant :foreground ,info)))
   `(combobulate-refactor-cursor-face ((,c :foreground ,cursor)))
   `(combobulate-refactor-field-face ((,c :background ,bg-inactive :foreground ,fg-main :extend nil)))
   `(combobulate-refactor-highlight-face ((,c :inherit highlight)))
   `(combobulate-refactor-inactive-choice-face ((,c :inherit modus-themes-slant :foreground ,fg-dim)))
   `(combobulate-refactor-inactive-field-face ((,c :background ,bg-dim :foreground ,fg-dim :extend nil)))
   `(combobulate-refactor-label-face ((,c :inherit modus-themes-search-replace)))
   `(combobulate-tree-branch-face ((,c :inherit shadow)))
   `(combobulate-tree-highlighted-node-face ((,c :inherit success)))
   `(combobulate-tree-normal-node-face ((,c :foreground ,fg-main)))
   `(combobulate-tree-pulse-node-face ((,c :background ,bg-blue-intense :extend t)))))

@DamienCassou
Copy link
Author

Thank you very much Prot. This is much better. I had to replace ,c with ,class and get rid of some lines which seem incompatible with my version of modus-themes.

protesilaos added a commit that referenced this issue Sep 8, 2024
This is in response to the question raised by Damien Cassou in issue
108: <#108>.
@protesilaos protesilaos added the documentation Improvements or additions to documentation label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants