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

[FEAT] Icon buttons #4010

Closed
TomJGooding opened this issue Jan 11, 2024 · 3 comments
Closed

[FEAT] Icon buttons #4010

TomJGooding opened this issue Jan 11, 2024 · 3 comments

Comments

@TomJGooding
Copy link
Contributor

TomJGooding commented Jan 11, 2024

The Button widget has a min-width of 16, as well as baked in padding. This can be bit frustrating to work with if you want icon buttons such as arrows, plus/minus, etc.

It would be nice to create these common buttons more easily. I'm not sure what the proper API should be, but perhaps a IconButton class that works with a single character? Maybe even some utility classes like a green plus and a red minus.

Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

@TomJGooding
Copy link
Contributor Author

I've realised in the cold light of day this isn't really necessary, it's simple enough to create a smaller button.

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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

No branches or pull requests

1 participant