refactor: rename to SelectableText instead of Text
This avoids API breakage
This commit is contained in:
parent
1de6ce9460
commit
8a03f063c0
6 changed files with 557 additions and 491 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue