[tuify] Create easy API to surround text with different glyphs
Closed this issue · 0 comments
Harshil-Jani commented
Currently, I love the feature in quiz game where the rounded rectangular border surrounds the text inside it.
In the quiz game example it is hardcoded as
r3bl-open-core/tuify/examples/single_select_quiz_game.rs
Lines 151 to 184 in 765ce8f
Inside of the tuify we can provide UX APIs directly to users based on which they can select their shapes from what we already serve them. They would just put in string and rest would be taken care.
We can provide
- Cornered Rectangle
- Sharp Rectangle
- Squares
... and so on.
The higher level overview of API method should look like
shapeName("Demo Text", ColorScheme)
and they can just use one line code from tuify to get their job done.