Function scl_gui_widgets::widgets::label::new

source ·
pub fn new<T: Data>(text: impl Into<LabelText<T>>) -> Label<T>
Expand description

以默认主题字体 crate::theme::color::typography::BASE 和颜色 crate::theme::color::typography::FONT_COLOR 创建一个标签组件 [druid::widget::Label]