summaryrefslogblamecommitdiffstats
path: root/web/src/widget/text.rs
blob: 0c1f75b6576cc4ff851a2f3eb7f727f12990a445 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                       
use crate::{Color, Element, Widget};

pub use iced::text::HorizontalAlignment;

pub type Text = iced::Text<Color>;

impl<'a, Message> Widget<Message> for Text {}

impl<'a, Message> From<Text> for Element<'a, Message> {
    fn from(text: Text) -> Element<'a, Message> {
        Element::new(text)
    }
}