diff --git a/crates/yakui-widgets/src/widgets/text.rs b/crates/yakui-widgets/src/widgets/text.rs index 6b4e3fcb..aa8ffcc6 100644 --- a/crates/yakui-widgets/src/widgets/text.rs +++ b/crates/yakui-widgets/src/widgets/text.rs @@ -47,6 +47,14 @@ impl Text { } } + pub fn with_style>>(text: S, style: TextStyle) -> Self { + Self { + text: text.into(), + style, + padding: Pad::ZERO, + } + } + pub fn label(text: Cow<'static, str>) -> Self { Self { text,