alphapapa / prism.el

Disperse Lisp forms (and other languages) into a spectrum of colors by depth
GNU General Public License v3.0
287 stars 4 forks source link

Update screenshots #19

Open alphapapa opened 1 year ago

alphapapa commented 1 year ago

Collecting some possibilities for new screenshots:

JasZhe commented 1 year ago

Oh haha! The recommendation in the README for solarized is outdated I think so this is what I did instead. It's not the prettiest but it worked for me. I'm using the solarized-gruvbox-light theme. Here it is if anyone's interested. I just basically perused the list-faces-display and picked what I thought would look nice lol

(defun prism-colors-solarized ()
  (prism-set-colors :num 24
    :desaturations '(0) :lightens '(0)
    :colors (list 'all-the-icons-lblue 'font-lock-string-face 'font-lock-keyword-face 'ansi-color-magenta 'font-lock-builtin-face 'font-lock-type-face )
    :comments-fn (lambda (color)
                   (-->
                    (prism-blend color (face-attribute 'font-lock-comment-face :foreground) 0.40)))
    :strings-fn (lambda (color)
                  (--> color
                       (color-desaturate-name it 25)
                       (prism-blend it (face-attribute 'default :background) 0.70)))
  )
)
JasZhe commented 1 year ago

There's also a strange issue where if you set save to t but don't set the comments-fn or strings-fn it will save some "#blahblah anonymous function" into custom.el which emacs will complain about. Workaround was to just copy the default lambda for it into the config

JasZhe commented 1 year ago

This one contains strings, sepia/light themes need more love :) image

Here's some random code (from http/fs.go) to showcase it in a more real world environment image