phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

Ability to draw simple shapes

Open pusewicz opened this issue 3 years ago • 4 comments

There's already a way to draw modals. It would be great if there was a way to draw some other primitives, such as rectangles.

This would allow one to draw a possible placement/size of the window before actually doing it. Such as shown here:

Screenshot 2022-04-13 at 18 14 48

pusewicz avatar Apr 13 '22 16:04 pusewicz

@pusewicz Hey, super cool idea! I will look into it.

kasper avatar Apr 14 '22 05:04 kasper

@kasper wondering if you did any research on how hard it would be to implement this. I'm currently writing a replacement for Moom which has similar feature as @pusewicz described and would sweet if something similar could be used.

*PS* Phoenix is great. I'm so glad I discovered this repo. It's been really fun working with the api! 🙌

boedy avatar Apr 19 '23 08:04 boedy

@boedy Not yet, but in the end everything is a window. So you should be able to achieve this with customised windows. Thanks for the kind words! 😸

kasper avatar Apr 21 '23 15:04 kasper

@boedy Not yet, but in the end everything is a window. So you should be able to achieve this with customised windows. Thanks for the kind words! 😸

This can also be achieved with the current Modal class. The only thing missing is the ability to customize the Modal's border (e.g. border color, border thickness, border line style) and background color (e.g. fill, fill opacity, etc).

hadynz avatar Jan 07 '24 21:01 hadynz