ui.el 1.2 KB

123456789101112131415161718192021222324252627
  1. ;;; ../../lyfi/configs/apps/doom/custom/ui.el -*- lexical-binding: t; -*-
  2. (defun my/apply-theme (frame)
  3. "Apply a specific theme and update package colors based on whether the FRAME is graphic or TUI."
  4. (select-frame frame)
  5. (if (display-graphic-p frame)
  6. (progn
  7. (mapc #'disable-theme custom-enabled-themes)
  8. (load-theme 'cutarv41 t)
  9. ;; Update rainbow-delimiters colors for Light theme
  10. (setq rainbow-delimiters-rainbow-colors
  11. '("#007cbf" "#cf3f29" "#2374de" "#c75e10" "#b05197" "#429e66" "#129cc9" "#a64dd6")))
  12. (progn
  13. (mapc #'disable-theme custom-enabled-themes)
  14. (load-theme 'cutarv41 t)
  15. ;; Update rainbow-delimiters colors for Dark theme
  16. ;; (setq rainbow-delimiters-rainbow-colors
  17. ;; '("#4da6ff" "#ff6b6b" "#6da6ff" "#ffb347" "#d18ecb" "#8fbc8f" "#80daeb" "#c8a0f2"))
  18. ))
  19. (custom-set-faces
  20. `(meow-insert-cursor ((t (:inherit unspecified :background ,(face-attribute 'font-lock-builtin-face :foreground)))))
  21. `(meow-normal-cursor ((t (:foreground ,(face-attribute 'mode-line-inactive :background), :background ,(face-attribute 'mode-line :foreground)))))
  22. )
  23. )
  24. (provide 'ui)