tumashu / ivy-posframe

ivy-posframe is a ivy extension, which let ivy use posframe to show its candidate menu, ivy-posframe is a **GNU ELPA** package.
414 stars 26 forks source link

Transparent posframe #101

Closed aadcg closed 1 year ago

aadcg commented 3 years ago

Hi. I'm wondering if it's possible to set the posframe as transparent relative to the parent frame.

I tried setq (ivy-posframe-parameters '((alpha . 10))) but it doesn't seem to work.

Thanks.

tumashu commented 3 years ago

Maybe child-frame do not support alpha, please try:

(make-frame
 `((parent-frame . ,(window-frame))
   (fullscreen . nil)
   (alpha . 20)))
aadcg commented 3 years ago

tumashu notifications@github.com writes:

Maybe child-frame do not support alpha, please try:

(make-frame `((parent-frame . ,(window-frame)) (fullscreen . nil) (alpha . 20)))

It doesn't work for me, and I suppose it doesn't work for you either.

Might indeed be a limitation of child-frame.

I was just wondering about this because it would be really cool to have a transparent ivy-posframe.

Thank you for this great package.

tumashu commented 3 years ago

I have asked in emacs-devel, maybe have good news in the next days.

tumashu commented 3 years ago

https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg00346.html

aadcg commented 3 years ago

tumashu notifications@github.com writes:

https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg00346.html

Thanks!

I tried with GNOME and sway but for now I wasn't able to get a transparent child frame. If I will able to do it I will post some information here.

For those using the X window system, perhaps the window compositor compton might be of help.