kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.39k stars 128 forks source link

Ability to draw simple shapes #300

Open pusewicz opened 2 years ago

pusewicz commented 2 years ago

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

kasper commented 2 years ago

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

boedy commented 1 year ago

@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! 🙌

kasper commented 1 year ago

@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! 😸

hadynz commented 10 months ago

@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).