From b0d36728e20b1498d09ff2f4dd6fa3599769a14b Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Sat, 9 Dec 2023 05:21:40 -0500 Subject: [PATCH] Add eldoc-frame support --- adwaita-dark-theme.el | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/adwaita-dark-theme.el b/adwaita-dark-theme.el index ad620d8..d1396e1 100644 --- a/adwaita-dark-theme.el +++ b/adwaita-dark-theme.el @@ -26,6 +26,9 @@ ;; To enable custom configuration for `neotree': ;; (eval-after-load 'neotree #'adwaita-dark-theme-neotree-configuration-enable) ;; +;; To enable custom configuration for `eldoc-frame': +;; (eval-after-load 'eldoc-frame #'adwaita-dark-theme-eldoc-frame-configuration-enable) +;; ;; To enable custom fringe bitmaps for `diff-hl': ;; (eval-after-load 'diff-hl #'adwaita-dark-theme-diff-hl-fringe-bmp-enable) ;; @@ -587,6 +590,10 @@ `(eldoc-box-body ((,class (:inherit (tooltip variable-pitch-text))))) `(eldoc-box-border ((,class (:background ,base-3)))) + ;; eldoc-frame + `(eldoc-frame-default ((,class (:inherit (tooltip variable-pitch-text))))) + `(eldoc-frame-border ((,class (:background ,base-3)))) + ;; fic-mode `(fic-face ((,class (:foreground ,yellow :weight bold)))) @@ -1027,6 +1034,33 @@ (advice-add #'neo-buffer--insert-dir-entry :override #'adwaita-dark-theme--neotree-insert-dir) (advice-add #'neo-buffer--insert-file-entry :override #'adwaita-dark-theme--neotree-insert-file)) +;; -------------------------------------------------------------------------- ;; +;; +;; eldoc-frame configuration +;; +;; -------------------------------------------------------------------------- ;; + +;; ---------------------------------- ;; +;; Setup function +;; ---------------------------------- ;; + +;;;###autoload +(defun adwaita-dark-theme-eldoc-frame-configuration-enable () + "Enable custom adwaita-dark configuration for use with eldoc-frame." + (set-face-background 'eldoc-frame-default "#000000") + (dolist (parameter '((left-fringe . 12) + (right-fringe . 12) + (alpha-background . 80))) + (add-to-list 'eldoc-frame-parameters parameter)) + (add-hook 'eldoc-frame-buffer-hook + (lambda () + (setq-local line-spacing 0.25) + (goto-char (point-min)) + (insert (propertize "\s\n" 'face '(:height 0.2))) + (goto-char (point-max)) + (insert (propertize "\s\n" 'face '(:height 0.2)))) + 100)) + ;; -------------------------------------------------------------------------- ;; ;; ;; Arrow fringe bitmaps configuration