-
Notifications
You must be signed in to change notification settings - Fork 259
Open
Description
This is a both a question and a feature request.
Problem description
I saw the TextView::set_effect method and wanted to have a set_style method too. I was about to implement it when I saw your comment in text_view.rs:
// TODO: remove now that we have styled text?
effect: Effect,So I wanted to discuss this here first.
Yes, the user can just set the content to a styled string instead of setting the effect or style for the text view. But for views that are created once and then updated regularly and from multiple code locations (e. g. a status bar), it is useful to have a way to set a default style for the view. So I think it would make sense to keep the set_effect method and to even add a set_style(Into<Style) method. (The set_effect method could also be dropped in favor of set_style.) What do you think?
Metadata
Metadata
Assignees
Labels
No labels