Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to draw simple shapes #300

Open
pusewicz opened this issue Apr 13, 2022 · 4 comments
Open

Ability to draw simple shapes #300

pusewicz opened this issue Apr 13, 2022 · 4 comments
Labels

Comments

@pusewicz
Copy link

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
Copy link
Owner

kasper commented Apr 14, 2022

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

@kasper kasper added the feature label Apr 14, 2022
@boedy
Copy link

boedy commented Apr 19, 2023

@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
Copy link
Owner

kasper commented Apr 21, 2023

@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
Copy link

hadynz commented Jan 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants