From 387af23bbbcb0f4bea528b52a91e95eefa9d039b Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sat, 25 Mar 2023 00:05:38 -0300 Subject: adaptative helm color selection --- configuration.el | 6 +++--- theme.el | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/configuration.el b/configuration.el index 20cd697..d44bcf2 100644 --- a/configuration.el +++ b/configuration.el @@ -275,9 +275,9 @@ :ensure t :init (helm-mode t) - (set-face-attribute 'helm-selection nil - :background "purple" - :foreground "black") + (set-face-attribute 'helm-selection nil + :background (color-lighten-name (face-attribute 'default :foreground) 50) + :foreground (color-darken-name (face-attribute 'default :background) 100)) :bind ("M-x" . helm-M-x) ("C-x b" . helm-buffers-list)) diff --git a/theme.el b/theme.el index 745a31d..755a855 100644 --- a/theme.el +++ b/theme.el @@ -1,8 +1,10 @@ (require 'use-package) -(require 'catppuccin-theme) -(setq catppuccin-flavor 'latte) -(load-theme 'catppuccin t) +;; (require 'catppuccin-theme) +(use-package catppuccin-theme + :ensure t + :custom catppuccin-flavor 'latte + :config (load-theme 'catppuccin t)) ;; (catppuccin-reload) ;; (use-package pastelmac-theme @@ -50,6 +52,6 @@ '(rainbow-delimiters-depth-5-face ((t (:foreground "Purple")))) '(rainbow-delimiters-depth-6-face ((t (:foreground "dark green")))) '(rainbow-delimiters-depth-9-face ((t (:foreground "indian red")))) - '(default ((t (:inherit nil :stipple nil :inverse-video nil :box nil :strike-through nil :extend nil :overline nil :underline nil :slant normal :weight normal :height 140 :width normal :foundry "nil" :family "Cascadia Mono"))))) + '(default ((t (:inherit nil :stipple nil :inverse-video nil :box nil :strike-through nil :extend nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry "nil" :family "Cascadia Mono"))))) (provide 'theme) -- cgit v1.2.3