Draft web runtime and widgets
This commit is contained in:
parent
a97401aed2
commit
27ac85a9d9
16 changed files with 321 additions and 29 deletions
13
web/src/widget/text.rs
Normal file
13
web/src/widget/text.rs
Normal file
|
|
@ -0,0 +1,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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue