feat: add selectable() to Text

This commit is contained in:
Hojjat 2026-05-15 13:38:15 -06:00 committed by Ashley Wulber
parent 347d91f7ea
commit 251254ad51
9 changed files with 442 additions and 19 deletions

View file

@ -505,6 +505,7 @@ where
state.raw(),
crate::text::Style {
color: style.text_color,
..crate::text::Style::default()
},
viewport,
);

View file

@ -459,6 +459,7 @@ where
state.raw(),
crate::text::Style {
color: style.text_color,
..crate::text::Style::default()
},
viewport,
);

View file

@ -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.

View file

@ -483,6 +483,7 @@ where
state.raw(),
crate::text::Style {
color: style.text_color,
..crate::text::Style::default()
},
viewport,
);