muffinmad/emacs-mini-frame

How to properly setup mini-frame border color?

Opened this issue · 2 comments

BooAA commented

I'm having trouble setup the border color, below is my config:

(use-package mini-frame
  :custom ((mini-frame-internal-border-color "red")
           (mini-frame-show-parameters '((top    . 0.2)
                                         (width  . 0.8)
                                         (left   . 0.5)
                                         (left-fringe . 4)
                                         (right-fringe . 4)
                                         (height . 15)))
           (mini-frame-color-shift-step 6)
           (mini-frame-advice-functions '(completing-read)))
  :hook (after-init . mini-frame-mode))

What I get is below:
mini-frame

The border doesn't change. I've also tried adding (internal-border-color . "red") to the frame parameter list, but has no effect either.

Version: Emacs 28, native-comp branch
OS: Debian sid

I'm afraid there is a little mess with child frame border width and color.

Try to customize the background of the child-frame-border face. And to set the border width use the child-frame-border-width frame attribute.

gf3 commented

Try to customize the background of the child-frame-border face. And to set the border width use the child-frame-border-width frame attribute.

this worked perfectly!

(use-package mini-frame
  :straight (:host github :repo "muffinmad/emacs-mini-frame")
  :custom
  ((mini-frame-show-parameters '((top . 64)
								 (width . 0.7)
								 (left . 0.5)
								 (child-frame-border-width . 3))))
  :custom-face
  (child-frame-border ((t (:background "systemYellowColor"))))
  :hook (after-init . mini-frame-mode))

Screenshot