Skip to content

Conversation

@KennedyTedesco
Copy link
Contributor

@KennedyTedesco KennedyTedesco commented Nov 17, 2023

Partially closes: #109

With this feature, instead of:

Span::styled('[q]', Style::default()->fg(AnsiColor::Red))

We just:

Span::fromString('[q]')->red()

Next step (a new PR): I'll implement a parser, something like:

Line::parse('<fg=green options=bold,italic>Hello</> World')

@dantleech dantleech merged commit 908ba2e into php-tui:main Nov 17, 2023
@dantleech
Copy link
Collaborator

🎉 nice!

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

Successfully merging this pull request may close these issues.

Encapsulate the modifier from the user in Style

2 participants