feat: add selectable() to Text
This commit is contained in:
parent
347d91f7ea
commit
251254ad51
9 changed files with 442 additions and 19 deletions
|
|
@ -505,6 +505,7 @@ where
|
|||
state.raw(),
|
||||
crate::text::Style {
|
||||
color: style.text_color,
|
||||
..crate::text::Style::default()
|
||||
},
|
||||
viewport,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -459,6 +459,7 @@ where
|
|||
state.raw(),
|
||||
crate::text::Style {
|
||||
color: style.text_color,
|
||||
..crate::text::Style::default()
|
||||
},
|
||||
viewport,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ where
|
|||
{
|
||||
let color = color.map(Into::into);
|
||||
|
||||
self.style(move |_theme| Style { color })
|
||||
self.style(move |_theme| Style { color, ..Style::default() })
|
||||
}
|
||||
|
||||
/// Sets the default style class of the [`Rich`] text.
|
||||
|
|
|
|||
|
|
@ -483,6 +483,7 @@ where
|
|||
state.raw(),
|
||||
crate::text::Style {
|
||||
color: style.text_color,
|
||||
..crate::text::Style::default()
|
||||
},
|
||||
viewport,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue