refactor: rename to SelectableText instead of Text

This avoids API breakage
This commit is contained in:
Hojjat 2026-06-29 16:49:35 -06:00 • committed by Michael Murphy
parent 1de6ce9460
commit 8a03f063c0
6 changed files with 557 additions and 491 deletions

View file

@ -290,7 +290,7 @@ impl Context {
)
}
pub fn applet_tooltip<'a, Message: Clone + 'static>(
pub fn applet_tooltip<'a, Message: 'static>(
&self,
content: impl Into<Element<'a, Message>>,
tooltip: impl Into<Cow<'static, str>>,
@ -502,7 +502,7 @@ impl Context {
}
}
pub fn text<'a>(&self, msg: impl Into<Cow<'a, str>>) -> crate::widget::Text<'a> {
pub fn text<'a>(&self, msg: impl Into<Cow<'a, str>>) -> crate::widget::Text<'a, crate::Theme> {
let msg = msg.into();
let t = match self.size {
Size::Hardcoded(_) => crate::widget::text,